2003-01-01 20:57:10

by Marc-Christian Petersen

[permalink] [raw]
Subject: set_current_state(); vs current->state = bla;

Hi all,

$subject says it all. Is there _any_ reason why not to use set_current_state?

ciao, Marc


2003-01-01 21:35:33

by Robert Love

[permalink] [raw]
Subject: Re: set_current_state(); vs current->state = bla;

On Wed, 2003-01-01 at 16:05, Marc-Christian Petersen wrote:

> $subject says it all. Is there _any_ reason why not to use set_current_state?

If you do not need the memory barrier... but then you can use
__set_current_state().

So, no, we should not open code this ever.

Robert Love