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:
Shuo A Liu
2021-07-02 12:03:11 +08:00
committed by wenlingz
parent b218544872
commit 1bccfab3b6
11 changed files with 11 additions and 41 deletions

View File

@@ -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