From 682cd34b744b7375935e5adcbbd121ca0efd1227 Mon Sep 17 00:00:00 2001 From: Hannes Weisbach Date: Wed, 20 Sep 2017 10:07:45 +0900 Subject: [PATCH] Make mcstop+release architecture independent --- arch/x86/tools/mcstop+release-smp-x86.sh.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/tools/mcstop+release-smp-x86.sh.in b/arch/x86/tools/mcstop+release-smp-x86.sh.in index bc461b39..6c15876f 100644 --- a/arch/x86/tools/mcstop+release-smp-x86.sh.in +++ b/arch/x86/tools/mcstop+release-smp-x86.sh.in @@ -19,7 +19,7 @@ cpus="" irqbalance_used="" # No SMP module? Exit. -if ! grep ihk_smp_x86 /proc/modules &>/dev/null; then exit 0; fi +if ! grep ihk_smp_@ARCH@ /proc/modules &>/dev/null; then exit 0; fi if [ "`systemctl status irqbalance_mck.service 2> /dev/null |grep -E 'Active: active'`" != "" ]; then irqbalance_used="yes" @@ -87,9 +87,9 @@ fi . ${SBINDIR}/mcoverlay-destroy.sh # Remove SMP module -if grep ihk_smp_x86 /proc/modules &>/dev/null; then - if ! rmmod ihk_smp_x86 2>/dev/null; then - echo "error: removing ihk_smp_x86" >&2 +if grep ihk_smp_@ARCH@ /proc/modules &>/dev/null; then + if ! rmmod ihk_smp_@ARCH@ 2>/dev/null; then + echo "error: removing ihk_smp_@ARCH@" >&2 exit 1 fi fi