Re: Very simple question ...

Michael L. Galbraith (mikeg@weiden.de)
Fri, 28 Aug 1998 07:02:36 +0200 (CEST)


On Thu, 27 Aug 1998, Anton Ghiugan wrote:

> Sorry about this insistence, but I need to know:
>
>
> Can a bottom half like NET_BH be interrupted by a kernel timer ? (Yes/No)
[X]

Hi Anton,

In opening comments from kernel/softirq.c, Linus says...

/*
* linux/kernel/softirq.c
*
* Copyright (C) 1992 Linus Torvalds
*
* do_bottom_half() runs at normal kernel priority: all interrupts
* enabled. do_bottom_half() is atomic with respect to itself: a
* bottom_half handler need not be re-entrant.
*/

and further down...

asmlinkage void do_bottom_half(void)
{
int cpu = smp_processor_id();

if (softirq_trylock(cpu)) {
if (hardirq_trylock(cpu)) {
__sti(); <== he says it again
run_bottom_halves();

If I'm reading that wrong, I'm sure someone will correct me :)

Cheers,

-Mike

-
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.altern.org/andrebalsa/doc/lkml-faq.html