Skip to content

Commit ce9c99a

Browse files
ijcH. Peter Anvin
authored andcommitted
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>
1 parent 6221f22 commit ce9c99a

File tree

5 files changed

+14
-21
lines changed

5 files changed

+14
-21
lines changed

arch/x86/Kconfig

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -365,17 +365,6 @@ config X86_UV
365365
# Following is an alphabetically sorted list of 32 bit extended platforms
366366
# Please maintain the alphabetic order if and when there are additions
367367

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-
379368
config X86_INTEL_CE
380369
bool "CE4100 TV platform"
381370
depends on PCI

arch/x86/Kconfig.cpu

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# Put here option for CPU selection and depending optimization
2-
if !X86_ELAN
3-
42
choice
53
prompt "Processor family"
64
default M686 if X86_32
@@ -203,6 +201,14 @@ config MWINCHIP3D
203201
stores for this CPU, which can increase performance of some
204202
operations.
205203

204+
config MELAN
205+
bool "AMD Elan"
206+
depends on X86_32
207+
---help---
208+
Select this for an AMD Elan processor.
209+
210+
Do not use this option for K6/Athlon/Opteron processors!
211+
206212
config MGEODEGX1
207213
bool "GeodeGX1"
208214
depends on X86_32
@@ -292,8 +298,6 @@ config X86_GENERIC
292298
This is really intended for distributors who need more
293299
generic optimizations.
294300

295-
endif
296-
297301
#
298302
# Define implied options from the CPU selection here
299303
config X86_INTERNODE_CACHE_SHIFT
@@ -312,7 +316,7 @@ config X86_L1_CACHE_SHIFT
312316
int
313317
default "7" if MPENTIUM4 || MPSC
314318
default "6" if MK7 || MK8 || MPENTIUMM || MCORE2 || MATOM || MVIAC7 || X86_GENERIC || GENERIC_CPU
315-
default "4" if X86_ELAN || M486 || M386 || MGEODEGX1
319+
default "4" if MELAN || M486 || M386 || MGEODEGX1
316320
default "5" if MWINCHIP3D || MWINCHIPC6 || MCRUSOE || MEFFICEON || MCYRIXIII || MK6 || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || M586 || MVIAC3_2 || MGEODE_LX
317321

318322
config X86_XADD
@@ -358,7 +362,7 @@ config X86_POPAD_OK
358362

359363
config X86_ALIGNMENT_16
360364
def_bool y
361-
depends on MWINCHIP3D || MWINCHIPC6 || MCYRIXIII || X86_ELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1
365+
depends on MWINCHIP3D || MWINCHIPC6 || MCYRIXIII || MELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1
362366

363367
config X86_INTEL_USERCOPY
364368
def_bool y

arch/x86/Makefile_32.cpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ cflags-$(CONFIG_MATOM) += $(call cc-option,-march=atom,$(call cc-option,-march=
3737
$(call cc-option,-mtune=atom,$(call cc-option,-mtune=generic))
3838

3939
# AMD Elan support
40-
cflags-$(CONFIG_X86_ELAN) += -march=i486
40+
cflags-$(CONFIG_MELAN) += -march=i486
4141

4242
# Geode GX1 support
4343
cflags-$(CONFIG_MGEODEGX1) += -march=pentium-mmx

arch/x86/include/asm/module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#define MODULE_PROC_FAMILY "K7 "
3636
#elif defined CONFIG_MK8
3737
#define MODULE_PROC_FAMILY "K8 "
38-
#elif defined CONFIG_X86_ELAN
38+
#elif defined CONFIG_MELAN
3939
#define MODULE_PROC_FAMILY "ELAN "
4040
#elif defined CONFIG_MCRUSOE
4141
#define MODULE_PROC_FAMILY "CRUSOE "

arch/x86/kernel/cpu/cpufreq/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ config X86_ACPI_CPUFREQ
4343
config ELAN_CPUFREQ
4444
tristate "AMD Elan SC400 and SC410"
4545
select CPU_FREQ_TABLE
46-
depends on X86_ELAN
46+
depends on MELAN
4747
---help---
4848
This adds the CPUFreq driver for AMD Elan SC400 and SC410
4949
processors.
@@ -59,7 +59,7 @@ config ELAN_CPUFREQ
5959
config SC520_CPUFREQ
6060
tristate "AMD Elan SC520"
6161
select CPU_FREQ_TABLE
62-
depends on X86_ELAN
62+
depends on MELAN
6363
---help---
6464
This adds the CPUFreq driver for AMD Elan SC520 processor.
6565

0 commit comments

Comments
 (0)