Re: get_current is __pure__, maybe __const__ even

From: Andi Kleen
Date: Thu Sep 16 2004 - 06:07:45 EST


> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/