config_tools: fix the issue that doesn't offline CPU in SCHED_NOOP mode

Fix the issue that doesn't offline CPU in SCHED_NOOP mode.

Tracked-On: #7172
Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Kunhui-Li
2022-03-02 15:17:36 +08:00
committed by acrnsi-robot
parent 08f7c2582c
commit d9a80dc746
2 changed files with 5 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ function add_cpus() {
# Each parameter of this function is considered the processor ID (as is reported in /proc/cpuinfo) of a CPU assigned
# to a post-launched RTVM.
if [ "${rtos_type}" != "no" ]; then
if [ "${rtos_type}" != "no" ] || [ "${scheduler}" = "SCHED_NOOP" ]; then
offline_cpus $*
fi