Re: [RFC PATCH] kernel: allow to configure PREEMPT_NONE, PREEMPT_VOLUNTARY on kernel command line

From: Peter Zijlstra
Date: Wed Oct 07 2020 - 08:21:54 EST


On Wed, Oct 07, 2020 at 02:04:01PM +0200, Michal Hocko wrote:
> I wanted to make sure that the idea is sound for maintainers first. The
> next step would be extending the command line to support full preemption
> as well but there is much more work in that area. Frederic has promissed
> to look into that.

The sanest way there is to static_call() __preempt_schedule() I think.
Alternatively you could use alternatives but that makes the whole thing
arch specific again.