Messages in this thread |  | | From | Anton Blanchard <> | Date | Wed, 7 Feb 2001 01:28:45 +1100 | Subject | Re: IRQ and sleep_on |
| |
> I'm very interesting to know why it's bad to restore flags in a sub-function. > I imagine it should be due to an optimisation in the restore function.
On sparc32 the flags includes the window pointer which tells us where in the register windows we are. If you restore flags in a sub function the kernel will become very confused :)
Forcing cli/sti etc to be in the same function also helps readability.
Anton - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |