File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,6 @@ static void get_cpu_name(void)
378
378
void bsp_boot_init (void )
379
379
{
380
380
uint64_t rsp ;
381
- uint64_t misc_en ;
382
381
383
382
start_tsc = rdtsc ();
384
383
@@ -388,11 +387,6 @@ void bsp_boot_init(void)
388
387
389
388
bitmap_set_nolock (BOOT_CPU_ID , & pcpu_active_bitmap );
390
389
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
-
396
390
/* Get CPU capabilities thru CPUID, including the physical address bit
397
391
* limit which is required for initializing paging.
398
392
*/
@@ -516,7 +510,6 @@ static void bsp_boot_post(void)
516
510
void cpu_secondary_init (void )
517
511
{
518
512
uint64_t rsp ;
519
- uint64_t misc_en ;
520
513
521
514
/* Switch this CPU to use the same page tables set-up by the
522
515
* primary/boot CPU
@@ -535,11 +528,6 @@ void cpu_secondary_init(void)
535
528
536
529
bitmap_set_nolock (get_cpu_id (), & pcpu_active_bitmap );
537
530
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
-
543
531
/* Switch to run-time stack */
544
532
rsp = (uint64_t )(& get_cpu_var (stack )[CONFIG_STACK_SIZE - 1 ]);
545
533
rsp &= ~(CPU_STACK_ALIGN - 1UL );
Original file line number Diff line number Diff line change 554
554
#define SPEC_ENABLE_STIBP (1U<<1)
555
555
#define PRED_SET_IBPB (1U<<0)
556
556
557
- /* Turbo config bit */
558
- #define TURBO_MODE_DISABLE (1UL<<38)
559
-
560
557
#endif /* MSR_H */
You can’t perform that action at this time.
0 commit comments