Re: get_current is __pure__, maybe __const__ even

Andi Kleen
2004-09-16T11:03:58Z

> The scheduler quite rightly expects, for any thread, that any variable
> which may be stored in a CPU register before the context switch has the
> same value as after the context switch.

Just current isn't a varible, it's some inline assembly in a inline
function. The question was if that function could be marked const/pure.

-Andi