Re: get_current is __pure__, maybe __const__ even

Andi Kleen
2004-09-16T09:11:31Z

> IOW, think from a tasks point of view. It gets into the scheduler,
> and switch_to() is just a normal function which just happens to sleep
> for some time.

On x86/x86-64 the stack switch is inlined into schedule()

-Andi