Skip to content

Commit f2d8879

Browse files
authored
Merge pull request #2661 from martin-frbg/issue2660
Report selected DYNAMIC_ARCH kernel rather than one of its aliases in gotoblas_corename
2 parents 3a1b58d + 007d9f9 commit f2d8879

File tree

1 file changed

+43
-7
lines changed

1 file changed

+43
-7
lines changed

driver/others/dynamic.c

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -764,18 +764,53 @@ char *gotoblas_corename(void) {
764764
if (gotoblas == &gotoblas_NORTHWOOD) return corename[ 3];
765765
if (gotoblas == &gotoblas_PRESCOTT) return corename[ 4];
766766
if (gotoblas == &gotoblas_BANIAS) return corename[ 5];
767-
if (gotoblas == &gotoblas_ATOM) return corename[ 6];
767+
if (gotoblas == &gotoblas_ATOM)
768+
#ifdef DYNAMIC_OLDER
769+
return corename[ 6];
770+
#else
771+
return corename[10];
772+
#endif
768773
if (gotoblas == &gotoblas_CORE2) return corename[ 7];
769-
if (gotoblas == &gotoblas_PENRYN) return corename[ 8];
770-
if (gotoblas == &gotoblas_DUNNINGTON) return corename[ 9];
774+
if (gotoblas == &gotoblas_PENRYN)
775+
#ifdef DYNAMIC_OLDER
776+
return corename[ 8];
777+
#else
778+
return corename[7];
779+
#endif
780+
if (gotoblas == &gotoblas_DUNNINGTON)
781+
#ifdef DYNAMIC_OLDER
782+
return corename[ 9];
783+
#else
784+
return corename[7];
785+
#endif
771786
if (gotoblas == &gotoblas_NEHALEM) return corename[10];
772787
if (gotoblas == &gotoblas_ATHLON) return corename[11];
773-
if (gotoblas == &gotoblas_OPTERON_SSE3) return corename[12];
774-
if (gotoblas == &gotoblas_OPTERON) return corename[13];
788+
if (gotoblas == &gotoblas_OPTERON_SSE3)
789+
#ifdef DYNAMIC_OLDER
790+
return corename[12];
791+
#else
792+
return corename[7];
793+
#endif
794+
if (gotoblas == &gotoblas_OPTERON)
795+
#ifdef DYNAMIC_OLDER
796+
return corename[13];
797+
#else
798+
return corename[7];
799+
#endif
775800
if (gotoblas == &gotoblas_BARCELONA) return corename[14];
776-
if (gotoblas == &gotoblas_NANO) return corename[15];
801+
if (gotoblas == &gotoblas_NANO)
802+
#ifdef DYNAMIC_OLDER
803+
return corename[15];
804+
#else
805+
return corename[10];
806+
#endif
777807
if (gotoblas == &gotoblas_SANDYBRIDGE) return corename[16];
778-
if (gotoblas == &gotoblas_BOBCAT) return corename[17];
808+
if (gotoblas == &gotoblas_BOBCAT)
809+
#ifdef DYNAMIC_OLDER
810+
return corename[17];
811+
#else
812+
return corename[7];
813+
#endif
779814
if (gotoblas == &gotoblas_BULLDOZER) return corename[18];
780815
if (gotoblas == &gotoblas_PILEDRIVER) return corename[19];
781816
if (gotoblas == &gotoblas_HASWELL) return corename[20];
@@ -787,6 +822,7 @@ char *gotoblas_corename(void) {
787822
}
788823

789824

825+
790826
static gotoblas_t *force_coretype(char *coretype){
791827

792828
int i ;

0 commit comments

Comments
 (0)