File tree Expand file tree Collapse file tree 7 files changed +2
-40
lines changed Expand file tree Collapse file tree 7 files changed +2
-40
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,6 @@ config X86
291
291
select TRACE_IRQFLAGS_NMI_SUPPORT
292
292
select USER_STACKTRACE_SUPPORT
293
293
select HAVE_ARCH_KCSAN if X86_64
294
- select X86_FEATURE_NAMES if PROC_FS
295
294
select PROC_PID_ARCH_STATUS if PROC_FS
296
295
select HAVE_ARCH_NODE_DEV_GROUP if X86_SGX
297
296
select FUNCTION_ALIGNMENT_16B if X86_64 || X86_ALIGNMENT_16
@@ -441,17 +440,6 @@ config SMP
441
440
442
441
If you don't know what to do here, say N.
443
442
444
- config X86_FEATURE_NAMES
445
- bool
446
- default y
447
- help
448
- This option compiles in a table of x86 feature bits and corresponding
449
- names. This is required to support /proc/cpuinfo and a few kernel
450
- messages. You can disable this to save space, at the expense of
451
- making those few kernel messages show numeric feature bits instead.
452
-
453
- If in doubt, say Y.
454
-
455
443
config X86_X2APIC
456
444
bool "Support x2apic"
457
445
depends on X86_LOCAL_APIC && X86_64 && (IRQ_REMAP || HYPERVISOR_GUEST)
Original file line number Diff line number Diff line change @@ -389,7 +389,7 @@ config IA32_FEAT_CTL
389
389
390
390
config X86_VMX_FEATURE_NAMES
391
391
def_bool y
392
- depends on IA32_FEAT_CTL && X86_FEATURE_NAMES
392
+ depends on IA32_FEAT_CTL
393
393
394
394
menuconfig PROCESSOR_SELECT
395
395
bool "Supported processor vendors" if EXPERT
Original file line number Diff line number Diff line change @@ -55,14 +55,12 @@ HOST_EXTRACFLAGS += -I$(srctree)/tools/include \
55
55
-include include/generated/autoconf.h \
56
56
-D__EXPORTED_HEADERS__
57
57
58
- ifdef CONFIG_X86_FEATURE_NAMES
59
58
$(obj ) /cpu.o : $(obj ) /cpustr.h
60
59
61
60
quiet_cmd_cpustr = CPUSTR $@
62
61
cmd_cpustr = $(obj ) /mkcpustr > $@
63
62
$(obj ) /cpustr.h : $(obj ) /mkcpustr FORCE
64
63
$(call if_changed,cpustr)
65
- endif
66
64
targets += cpustr.h
67
65
68
66
# ---------------------------------------------------------------------------
Original file line number Diff line number Diff line change 14
14
*/
15
15
16
16
#include "boot.h"
17
- #ifdef CONFIG_X86_FEATURE_NAMES
18
17
#include "cpustr.h"
19
- #endif
20
18
21
19
static char * cpu_name (int level )
22
20
{
@@ -35,7 +33,6 @@ static char *cpu_name(int level)
35
33
static void show_cap_strs (u32 * err_flags )
36
34
{
37
35
int i , j ;
38
- #ifdef CONFIG_X86_FEATURE_NAMES
39
36
const unsigned char * msg_strs = (const unsigned char * )x86_cap_strs ;
40
37
for (i = 0 ; i < NCAPINTS ; i ++ ) {
41
38
u32 e = err_flags [i ];
@@ -58,16 +55,6 @@ static void show_cap_strs(u32 *err_flags)
58
55
e >>= 1 ;
59
56
}
60
57
}
61
- #else
62
- for (i = 0 ; i < NCAPINTS ; i ++ ) {
63
- u32 e = err_flags [i ];
64
- for (j = 0 ; j < 32 ; j ++ ) {
65
- if (e & 1 )
66
- printf ("%d:%d " , i , j );
67
- e >>= 1 ;
68
- }
69
- }
70
- #endif
71
58
}
72
59
73
60
int validate_cpu (void )
Original file line number Diff line number Diff line change @@ -38,15 +38,10 @@ enum cpuid_leafs
38
38
#define X86_CAP_FMT_NUM "%d:%d"
39
39
#define x86_cap_flag_num (flag ) ((flag) >> 5), ((flag) & 31)
40
40
41
- #ifdef CONFIG_X86_FEATURE_NAMES
42
41
extern const char * const x86_cap_flags [NCAPINTS * 32 ];
43
42
extern const char * const x86_power_flags [32 ];
44
43
#define X86_CAP_FMT "%s"
45
44
#define x86_cap_flag (flag ) x86_cap_flags[flag]
46
- #else
47
- #define X86_CAP_FMT X86_CAP_FMT_NUM
48
- #define x86_cap_flag x86_cap_flag_num
49
- #endif
50
45
51
46
/*
52
47
* In order to save room, we index into this array by doing
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ obj-y += cpuid-deps.o
27
27
obj-y += umwait.o
28
28
29
29
obj-$(CONFIG_PROC_FS) += proc.o
30
- obj-$(CONFIG_X86_FEATURE_NAMES) += capflags.o powerflags.o
30
+ obj-y += capflags.o powerflags.o
31
31
32
32
obj-$(CONFIG_IA32_FEAT_CTL) += feat_ctl.o
33
33
ifdef CONFIG_CPU_SUP_INTEL
@@ -54,7 +54,6 @@ obj-$(CONFIG_X86_LOCAL_APIC) += perfctr-watchdog.o
54
54
obj-$(CONFIG_HYPERVISOR_GUEST) += vmware.o hypervisor.o mshyperv.o
55
55
obj-$(CONFIG_ACRN_GUEST) += acrn.o
56
56
57
- ifdef CONFIG_X86_FEATURE_NAMES
58
57
quiet_cmd_mkcapflags = MKCAP $@
59
58
cmd_mkcapflags = $(CONFIG_SHELL ) $(srctree ) /$(src ) /mkcapflags.sh $@ $^
60
59
@@ -63,5 +62,4 @@ vmxfeature = $(src)/../../include/asm/vmxfeatures.h
63
62
64
63
$(obj ) /capflags.c : $(cpufeature ) $(vmxfeature ) $(src ) /mkcapflags.sh FORCE
65
64
$(call if_changed,mkcapflags)
66
- endif
67
65
targets += capflags.c
Original file line number Diff line number Diff line change @@ -1502,12 +1502,10 @@ static void __init cpu_parse_early_param(void)
1502
1502
if (!kstrtouint (opt , 10 , & bit )) {
1503
1503
if (bit < NCAPINTS * 32 ) {
1504
1504
1505
- #ifdef CONFIG_X86_FEATURE_NAMES
1506
1505
/* empty-string, i.e., ""-defined feature flags */
1507
1506
if (!x86_cap_flags [bit ])
1508
1507
pr_cont (" " X86_CAP_FMT_NUM , x86_cap_flag_num (bit ));
1509
1508
else
1510
- #endif
1511
1509
pr_cont (" " X86_CAP_FMT , x86_cap_flag (bit ));
1512
1510
1513
1511
setup_clear_cpu_cap (bit );
@@ -1520,7 +1518,6 @@ static void __init cpu_parse_early_param(void)
1520
1518
continue ;
1521
1519
}
1522
1520
1523
- #ifdef CONFIG_X86_FEATURE_NAMES
1524
1521
for (bit = 0 ; bit < 32 * NCAPINTS ; bit ++ ) {
1525
1522
if (!x86_cap_flag (bit ))
1526
1523
continue ;
@@ -1537,7 +1534,6 @@ static void __init cpu_parse_early_param(void)
1537
1534
1538
1535
if (!found )
1539
1536
pr_cont (" (unknown: %s)" , opt );
1540
- #endif
1541
1537
}
1542
1538
pr_cont ("\n" );
1543
1539
You can’t perform that action at this time.
0 commit comments