lkml.org 
[lkml]   [1999]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: timer_bh behaviour incorrect for 2.2.13?
On Thu, 9 Dec 1999, Andrea Arcangeli wrote:

>On Thu, 9 Dec 1999, William Montgomery wrote:
>
>>
>>I am having a difficult time with the patch to run_bottom_halves.
>>I have the following:
>> bh = bh_base;
> ^^^^^^^^^^^^^ remove
>> while ((active = get_active_bhs())) {
>> __sti();
>> clear_active_bhs(active);
> bh = bh_base;
> ^^^^^^^^^^^ insert
>> do {
>> if (active & 1)
>> (*bh)();
>> bh++;
>> active >>= 1;
>> } while (active);
>> __cli();
>> }
>
>Move `bh = bh_base' before the do { } while loop.

Forget to tell the result will won't risk to miss bh only for UP, but
that's fine for testing of course ;).

Andrea


-
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:55    [W:0.069 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site