mcreboot-smp-x86: -t to enable turbo boost
This commit is contained in:
@ -148,7 +148,7 @@ extern char page_fault[], general_protection_exception[];
|
|||||||
extern char debug_exception[], int3_exception[];
|
extern char debug_exception[], int3_exception[];
|
||||||
|
|
||||||
uint64_t boot_pat_state = 0;
|
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 */
|
extern int num_processors; /* kernel/ap.c */
|
||||||
struct pvclock_vsyscall_time_info *pvti = NULL;
|
struct pvclock_vsyscall_time_info *pvti = NULL;
|
||||||
|
|||||||
@ -39,7 +39,9 @@ else
|
|||||||
irqbalance_used="no"
|
irqbalance_used="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while getopts :i:k:c:m:o:f: OPT
|
turbo=""
|
||||||
|
|
||||||
|
while getopts :ti:k:c:m:o:f: OPT
|
||||||
do
|
do
|
||||||
case ${OPT} in
|
case ${OPT} in
|
||||||
f) facility=${OPTARG}
|
f) facility=${OPTARG}
|
||||||
@ -76,6 +78,8 @@ do
|
|||||||
;;
|
;;
|
||||||
m) mem=${OPTARG}
|
m) mem=${OPTARG}
|
||||||
;;
|
;;
|
||||||
|
t) turbo="turbo"
|
||||||
|
;;
|
||||||
*) echo "invalid option -${OPT}" >&2
|
*) echo "invalid option -${OPT}" >&2
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
@ -340,7 +344,7 @@ if ! ${SBINDIR}/ihkosctl 0 load ${KERNDIR}/mckernel.img; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Set kernel arguments
|
# 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
|
echo "error: setting kernel arguments" >&2
|
||||||
error_exit "os_created"
|
error_exit "os_created"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user