File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 8585#define X86_FEATURE_CENTAUR_MCR ( 3*32+ 3) /* "centaur_mcr" Centaur MCRs (= MTRRs) */
8686#define X86_FEATURE_K8 ( 3*32+ 4) /* Opteron, Athlon64 */
8787#define X86_FEATURE_ZEN5 ( 3*32+ 5) /* CPU based on Zen5 microarchitecture */
88- #define X86_FEATURE_P3 ( 3*32+ 6) /* P3 */
89- #define X86_FEATURE_P4 ( 3*32+ 7) /* P4 */
88+ #define X86_FEATURE_ZEN6 ( 3*32+ 6) /* CPU based on Zen6 microarchitecture */
89+ /* Free ( 3*32+ 7) */
9090#define X86_FEATURE_CONSTANT_TSC ( 3*32+ 8) /* "constant_tsc" TSC ticks at a constant rate */
9191#define X86_FEATURE_UP ( 3*32+ 9) /* "up" SMP kernel running on UP */
9292#define X86_FEATURE_ART ( 3*32+10) /* "art" Always running timer (ART) */
Original file line number Diff line number Diff line change @@ -465,6 +465,11 @@ static void bsp_init_amd(struct cpuinfo_x86 *c)
465465 case 0x70 ... 0x7f :
466466 setup_force_cpu_cap (X86_FEATURE_ZEN5 );
467467 break ;
468+ case 0x50 ... 0x5f :
469+ case 0x90 ... 0xaf :
470+ case 0xc0 ... 0xcf :
471+ setup_force_cpu_cap (X86_FEATURE_ZEN6 );
472+ break ;
468473 default :
469474 goto warn ;
470475 }
Original file line number Diff line number Diff line change @@ -628,11 +628,6 @@ static void init_intel(struct cpuinfo_x86 *c)
628628 if (p )
629629 strcpy (c -> x86_model_id , p );
630630 }
631-
632- if (c -> x86 == 15 )
633- set_cpu_cap (c , X86_FEATURE_P4 );
634- if (c -> x86 == 6 )
635- set_cpu_cap (c , X86_FEATURE_P3 );
636631#endif
637632
638633 /* Work around errata */
You can’t perform that action at this time.
0 commit comments