mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-10-05 16:25:15 +00:00
config_tools: Use new HSM driver device node
Tracked-On: #6282 Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
This commit is contained in:
@@ -2,13 +2,6 @@
|
||||
# Copyright (C) 2019 Intel Corporation.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
offline_path="/sys/class/vhm/acrn_vhm"
|
||||
|
||||
# Check the device file of /dev/acrn_hsm to determine the offline_path
|
||||
if [ -e "/dev/acrn_hsm" ]; then
|
||||
offline_path="/sys/class/acrn/acrn_hsm"
|
||||
fi
|
||||
|
||||
kernel_version=$(uname -r | awk -F. '{ printf("%d.%d", $1,$2) }')
|
||||
|
||||
ipu_passthrough=0
|
||||
@@ -459,7 +452,7 @@ for i in `ls -d /sys/devices/system/cpu/cpu[1-99]`; do
|
||||
echo 0 > $i/online
|
||||
online=`cat $i/online`
|
||||
done
|
||||
echo $idx > ${offline_path}/offline_cpu
|
||||
echo $idx > /sys/devices/virtual/misc/acrn_hsm/remove_cpu
|
||||
fi
|
||||
done
|
||||
|
||||
|
Reference in New Issue
Block a user