• Srinivas Pandruvada's avatar
    tools/power/x86/intel-speed-select: Use cgroup isolate for CPU 0 · 3bc0f20a
    Srinivas Pandruvada authored
    From kernel version 6.5, CPU 0 hotplug capability is deprecated.
    If some SST profile doesn't have CPU 0, then it is no longer possible to
    offline CPU 0. This means that user space threads will still run on
    CPU 0.
    
    To workaround this issue, use cgroup v2 isolation feature. Whenever there
    /sys/devices/system/cpu/cpu0/online file is absent or open fails, isolate
    CPU 0 via CPU cgroup v2 isolation. Also add a command line option to
    force even if the /sys/devices/system/cpu/cpu0/online is present.
    
    The previous commit "01bcb56f ("tools/power/x86/intel-speed-select:
    Prevent CPU 0 offline") was just warning about this issue based on the
    kernel version 6.5 and above. With this new approach, instead of warning
    take action to mitigate the issue.
    Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
    3bc0f20a
isst-daemon.c 5.57 KB