Skip to content

Commit 64a9b2b

Browse files
JasonChenCJlijinxia
authored andcommitted
Revert "[REVERT-ME]: disable turbo mode"
This reverts commit b369098.
1 parent 18d44cc commit 64a9b2b

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

hypervisor/arch/x86/cpu.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ static void get_cpu_name(void)
378378
void bsp_boot_init(void)
379379
{
380380
uint64_t rsp;
381-
uint64_t misc_en;
382381

383382
start_tsc = rdtsc();
384383

@@ -388,11 +387,6 @@ void bsp_boot_init(void)
388387

389388
bitmap_set_nolock(BOOT_CPU_ID, &pcpu_active_bitmap);
390389

391-
misc_en = msr_read(MSR_IA32_MISC_ENABLE);
392-
if ((misc_en & TURBO_MODE_DISABLE) == 0UL) {
393-
msr_write(MSR_IA32_MISC_ENABLE, misc_en | TURBO_MODE_DISABLE);
394-
}
395-
396390
/* Get CPU capabilities thru CPUID, including the physical address bit
397391
* limit which is required for initializing paging.
398392
*/
@@ -516,7 +510,6 @@ static void bsp_boot_post(void)
516510
void cpu_secondary_init(void)
517511
{
518512
uint64_t rsp;
519-
uint64_t misc_en;
520513

521514
/* Switch this CPU to use the same page tables set-up by the
522515
* primary/boot CPU
@@ -535,11 +528,6 @@ void cpu_secondary_init(void)
535528

536529
bitmap_set_nolock(get_cpu_id(), &pcpu_active_bitmap);
537530

538-
misc_en = msr_read(MSR_IA32_MISC_ENABLE);
539-
if ((misc_en & TURBO_MODE_DISABLE) == 0UL) {
540-
msr_write(MSR_IA32_MISC_ENABLE, misc_en | TURBO_MODE_DISABLE);
541-
}
542-
543531
/* Switch to run-time stack */
544532
rsp = (uint64_t)(&get_cpu_var(stack)[CONFIG_STACK_SIZE - 1]);
545533
rsp &= ~(CPU_STACK_ALIGN - 1UL);

hypervisor/include/arch/x86/msr.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,4 @@
554554
#define SPEC_ENABLE_STIBP (1U<<1)
555555
#define PRED_SET_IBPB (1U<<0)
556556

557-
/* Turbo config bit */
558-
#define TURBO_MODE_DISABLE (1UL<<38)
559-
560557
#endif /* MSR_H */

0 commit comments

Comments
 (0)