lkml.org 
[lkml]   [2004]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Date
From
SubjectRe: [PATCH] Readd panic blinking in 2.6
> 
> Something like
>
> spin_lock_irqsave(&i8042_lock, flags);
> i8042_flush();
> i8042_ctr &= ~I8042_CTR_KBDINT & ~I8042_CTR_AUXINT;
> i8042_command(&i8042_ctr, I8042_CMD_CTL_WCTR);
> i8042_wait_write();
> i8042_write_data(0xed);
> i8042_wait_read();
> i8042_flush();
> i8042_wait_write();
> i8042_write_data(led);
> i8042_wait_read();
> i8042_flush();
> spin_unlock_irqrestore(&i8042_lock, flags);
>
> would be safer and more correct.

That all takes far too many locks. The risk of deadlocking during
panic is too great. I think the delay is fine (worked great under 2.4),
just need to fix the IBF issue you mentioned.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.175 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site