From 87d36a7752c8152e8d20273eb881624ef2a1bb40 Mon Sep 17 00:00:00 2001 From: Balazs Gerofi Date: Mon, 5 Dec 2016 18:04:40 +0900 Subject: [PATCH] mcreboot-smp-x86: -t to enable turbo boost --- arch/x86/kernel/cpu.c | 2 +- arch/x86/tools/mcreboot-smp-x86.sh.in | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu.c b/arch/x86/kernel/cpu.c index 5d4f3f52..da4e2e26 100644 --- a/arch/x86/kernel/cpu.c +++ b/arch/x86/kernel/cpu.c @@ -148,7 +148,7 @@ extern char page_fault[], general_protection_exception[]; extern char debug_exception[], int3_exception[]; uint64_t boot_pat_state = 0; -int no_turbo = 0; /* May be updated by early parsing of kargs */ +int no_turbo = 1; /* May be updated by early parsing of kargs */ extern int num_processors; /* kernel/ap.c */ struct pvclock_vsyscall_time_info *pvti = NULL; diff --git a/arch/x86/tools/mcreboot-smp-x86.sh.in b/arch/x86/tools/mcreboot-smp-x86.sh.in index 818de47b..79c700c7 100644 --- a/arch/x86/tools/mcreboot-smp-x86.sh.in +++ b/arch/x86/tools/mcreboot-smp-x86.sh.in @@ -39,7 +39,9 @@ else irqbalance_used="no" fi -while getopts :i:k:c:m:o:f: OPT +turbo="" + +while getopts :ti:k:c:m:o:f: OPT do case ${OPT} in f) facility=${OPTARG} @@ -76,6 +78,8 @@ do ;; m) mem=${OPTARG} ;; + t) turbo="turbo" + ;; *) echo "invalid option -${OPT}" >&2 exit 1 esac @@ -340,7 +344,7 @@ if ! ${SBINDIR}/ihkosctl 0 load ${KERNDIR}/mckernel.img; then fi # Set kernel arguments -if ! ${SBINDIR}/ihkosctl 0 kargs "hidos ksyslogd=${LOGMODE}"; then +if ! ${SBINDIR}/ihkosctl 0 kargs "hidos ksyslogd=${LOGMODE} $turbo"; then echo "error: setting kernel arguments" >&2 error_exit "os_created" fi