2003-03-21 19:39:15

by Maciej Soltysiak

[permalink] [raw]
Subject: Preempt switchable.

Hi,

would it be possible to turn on/off CONFIG_PREEMPT at runtime, eg. via
sysctl ?

Regards,
Maciej


2003-03-21 19:46:48

by Robert Love

[permalink] [raw]
Subject: Re: Preempt switchable.

On Fri, 2003-03-21 at 14:48, Maciej Soltysiak wrote:

> would it be possible to turn on/off CONFIG_PREEMPT at runtime, eg. via
> sysctl ?

Sure, make a sysctl and check it in preempt_schedule() and
ret_from_kernel in entry.S before invoking schedule().

But that is not pretty, and I do not think it should go in mainline.
Linus has said as much, too.

Robert Love