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, 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.

>I left the __sti(); / __cli(); in the caller.

Remove both them. You don't need them.

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.076 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site