Re: spin_lock_irq vs. spin_lock_irqsave.

From: Tigran Aivazian (tigran@veritas.com)
Date: Wed Jun 21 2000 - 12:47:33 EST


On Sun, 18 Jun 2000, Andrew Morton wrote:
> BTW: CPU flags should always be saved and restored in the same function
> - it's not correct to pass the flags to another function and allow that
> function to restore them. Breaks on SPARC, apparently. Does Rusty's
> doc cover this??

it maybe obvious (definitely is to most) but it may still be worth
mentioning that 'passing' flags to inline'd functions is ok, otherwise
people would get very confused when they look at
__schedule_tail()/reschedule_idle() interaction.

Regards,
Tigran

-
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/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:22 EST