RE: [PATCH] x86/resctrl: avoid compiler optimization in __resctrl_sched_in

From: Luck, Tony
Date: Tue Mar 07 2023 - 16:11:17 EST


> (a) it shouldn't define and declare a static function in a header file
>
> (b) the resctrl_sched_in() inline function is midesigned to begin with

Fixing "b" would seem to be to just pass "next_p" to the function to
use instead of "current".

Can you expand about part "a" ... Linux has zillions of static inline functions
in header files to handle CONFIG options. One version is the real McCoy
while the other is just a stub for the CONFIG=n case.

What's different about this one?

-Tony