Re: [PATCH] sched: fix sched_feat for !SCHED_DEBUG builds

2017-11-07 Thread Peter Zijlstra
On Tue, Nov 07, 2017 at 04:06:58PM +, Patrick Bellasi wrote: > For this mechanism to properly work it's required for the compiler to > have full access, from each translation unit, to whatever is the value > defined by the sched_feat macro. > Statistics on the reported completion time: > >

[PATCH] sched: fix sched_feat for !SCHED_DEBUG builds

2017-11-07 Thread Patrick Bellasi
When the kernel is compiled with !SCHED_DEBUG support, we expect that all SCHED_FEAT are turned into compile time constants being propagated to support compiler optimizations. Specifically, we expect that code blocks like this: if (sched_feat(FEATURE_NAME) [&& ]) { /* FEATURE CODE */