Re: [RFC PATCH 4/8] preempt: Introduce CONFIG_PREEMPT_DYNAMIC

2021-01-28 Thread Frederic Weisbecker
On Fri, Jan 22, 2021 at 05:53:43PM +0100, Peter Zijlstra wrote: > On Mon, Jan 18, 2021 at 03:12:19PM +0100, Frederic Weisbecker wrote: > > +config HAVE_PREEMPT_DYNAMIC > > + bool > > + depends on HAVE_STATIC_CALL_INLINE > > I think we can relax this to HAVE_STATIC_CALL, using trampolines > sho

Re: [RFC PATCH 4/8] preempt: Introduce CONFIG_PREEMPT_DYNAMIC

2021-01-22 Thread Peter Zijlstra
On Mon, Jan 18, 2021 at 03:12:19PM +0100, Frederic Weisbecker wrote: > +config HAVE_PREEMPT_DYNAMIC > + bool > + depends on HAVE_STATIC_CALL_INLINE I think we can relax this to HAVE_STATIC_CALL, using trampolines shouldn't be too bad, and that would put it in reach of arm64. > + depen

[RFC PATCH 4/8] preempt: Introduce CONFIG_PREEMPT_DYNAMIC

2021-01-18 Thread Frederic Weisbecker
From: Michal Hocko Preemption mode selection is currently hardcoded on Kconfig choices. Introduce a dedicated option to tune preemption flavour at boot time, This will be only available on architectures efficiently supporting static calls in order not to tempt with the feature against additional