lkml.org 
[lkml]   [1999]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] entry.S calling schedule() with interrupts disabled, 2.2.2


On Mon, 1 Mar 1999, Ingo Molnar wrote:
>
> maybe i'm misunderstanding something, but i'm trying to catch exactly such
> code, because i think it's buggy. schedule() does not guarantee that the
> 'interrupt state' (IF on UP, the more complex interrupt state on SMP) is
> preserved.

Indeed. In fact it guarantees that it is dropped, whatever the state was
before.

A lot of tests are volatile in only one direction - you're waiting for a
buffer to not be empty any more, and the filling is asynchronous, but the
emptying is not.

Linus


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

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