Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86, cpu: Move AMD Elan Kconfig under "Processor family"

Currently the option resides under X86_EXTENDED_PLATFORM due to historical
nonstandard A20M# handling. However that is no longer the case and so Elan can
be treated as part of the standard processor choice Kconfig option.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Link: http://lkml.kernel.org/r/1302245177.31620.47.camel@localhost.localdomain
Cc: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>

authored by

Ian Campbell and committed by
H. Peter Anvin
ce9c99af 6221f222

+14 -21
-11
arch/x86/Kconfig
··· 365 365 # Following is an alphabetically sorted list of 32 bit extended platforms 366 366 # Please maintain the alphabetic order if and when there are additions 367 367 368 - config X86_ELAN 369 - bool "AMD Elan" 370 - depends on X86_32 371 - depends on X86_EXTENDED_PLATFORM 372 - ---help--- 373 - Select this for an AMD Elan processor. 374 - 375 - Do not use this option for K6/Athlon/Opteron processors! 376 - 377 - If unsure, choose "PC-compatible" instead. 378 - 379 368 config X86_INTEL_CE 380 369 bool "CE4100 TV platform" 381 370 depends on PCI
+10 -6
arch/x86/Kconfig.cpu
··· 1 1 # Put here option for CPU selection and depending optimization 2 - if !X86_ELAN 3 - 4 2 choice 5 3 prompt "Processor family" 6 4 default M686 if X86_32 ··· 201 203 stores for this CPU, which can increase performance of some 202 204 operations. 203 205 206 + config MELAN 207 + bool "AMD Elan" 208 + depends on X86_32 209 + ---help--- 210 + Select this for an AMD Elan processor. 211 + 212 + Do not use this option for K6/Athlon/Opteron processors! 213 + 204 214 config MGEODEGX1 205 215 bool "GeodeGX1" 206 216 depends on X86_32 ··· 298 292 This is really intended for distributors who need more 299 293 generic optimizations. 300 294 301 - endif 302 - 303 295 # 304 296 # Define implied options from the CPU selection here 305 297 config X86_INTERNODE_CACHE_SHIFT ··· 316 312 int 317 313 default "7" if MPENTIUM4 || MPSC 318 314 default "6" if MK7 || MK8 || MPENTIUMM || MCORE2 || MATOM || MVIAC7 || X86_GENERIC || GENERIC_CPU 319 - default "4" if X86_ELAN || M486 || M386 || MGEODEGX1 315 + default "4" if MELAN || M486 || M386 || MGEODEGX1 320 316 default "5" if MWINCHIP3D || MWINCHIPC6 || MCRUSOE || MEFFICEON || MCYRIXIII || MK6 || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || M586 || MVIAC3_2 || MGEODE_LX 321 317 322 318 config X86_XADD ··· 362 358 363 359 config X86_ALIGNMENT_16 364 360 def_bool y 365 - depends on MWINCHIP3D || MWINCHIPC6 || MCYRIXIII || X86_ELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1 361 + depends on MWINCHIP3D || MWINCHIPC6 || MCYRIXIII || MELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1 366 362 367 363 config X86_INTEL_USERCOPY 368 364 def_bool y
+1 -1
arch/x86/Makefile_32.cpu
··· 37 37 $(call cc-option,-mtune=atom,$(call cc-option,-mtune=generic)) 38 38 39 39 # AMD Elan support 40 - cflags-$(CONFIG_X86_ELAN) += -march=i486 40 + cflags-$(CONFIG_MELAN) += -march=i486 41 41 42 42 # Geode GX1 support 43 43 cflags-$(CONFIG_MGEODEGX1) += -march=pentium-mmx
+1 -1
arch/x86/include/asm/module.h
··· 35 35 #define MODULE_PROC_FAMILY "K7 " 36 36 #elif defined CONFIG_MK8 37 37 #define MODULE_PROC_FAMILY "K8 " 38 - #elif defined CONFIG_X86_ELAN 38 + #elif defined CONFIG_MELAN 39 39 #define MODULE_PROC_FAMILY "ELAN " 40 40 #elif defined CONFIG_MCRUSOE 41 41 #define MODULE_PROC_FAMILY "CRUSOE "
+2 -2
arch/x86/kernel/cpu/cpufreq/Kconfig
··· 43 43 config ELAN_CPUFREQ 44 44 tristate "AMD Elan SC400 and SC410" 45 45 select CPU_FREQ_TABLE 46 - depends on X86_ELAN 46 + depends on MELAN 47 47 ---help--- 48 48 This adds the CPUFreq driver for AMD Elan SC400 and SC410 49 49 processors. ··· 59 59 config SC520_CPUFREQ 60 60 tristate "AMD Elan SC520" 61 61 select CPU_FREQ_TABLE 62 - depends on X86_ELAN 62 + depends on MELAN 63 63 ---help--- 64 64 This adds the CPUFreq driver for AMD Elan SC520 processor. 65 65