File tree Expand file tree Collapse file tree 9 files changed +7
-41
lines changed Expand file tree Collapse file tree 9 files changed +7
-41
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,6 @@ config X86
294
294
select TRACE_IRQFLAGS_NMI_SUPPORT
295
295
select USER_STACKTRACE_SUPPORT
296
296
select HAVE_ARCH_KCSAN if X86_64
297
- select X86_FEATURE_NAMES if PROC_FS
298
297
select PROC_PID_ARCH_STATUS if PROC_FS
299
298
select HAVE_ARCH_NODE_DEV_GROUP if X86_SGX
300
299
select FUNCTION_ALIGNMENT_16B if X86_64 || X86_ALIGNMENT_16
@@ -444,17 +443,6 @@ config SMP
444
443
445
444
If you don't know what to do here, say N.
446
445
447
- config X86_FEATURE_NAMES
448
- bool "Processor feature human-readable names" if EMBEDDED
449
- default y
450
- help
451
- This option compiles in a table of x86 feature bits and corresponding
452
- names. This is required to support /proc/cpuinfo and a few kernel
453
- messages. You can disable this to save space, at the expense of
454
- making those few kernel messages show numeric feature bits instead.
455
-
456
- If in doubt, say Y.
457
-
458
446
config X86_X2APIC
459
447
bool "Support x2apic"
460
448
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 @@ -1489,12 +1489,10 @@ static void __init cpu_parse_early_param(void)
1489
1489
if (!kstrtouint (opt , 10 , & bit )) {
1490
1490
if (bit < NCAPINTS * 32 ) {
1491
1491
1492
- #ifdef CONFIG_X86_FEATURE_NAMES
1493
1492
/* empty-string, i.e., ""-defined feature flags */
1494
1493
if (!x86_cap_flags [bit ])
1495
1494
pr_cont (" " X86_CAP_FMT_NUM , x86_cap_flag_num (bit ));
1496
1495
else
1497
- #endif
1498
1496
pr_cont (" " X86_CAP_FMT , x86_cap_flag (bit ));
1499
1497
1500
1498
setup_clear_cpu_cap (bit );
@@ -1507,7 +1505,6 @@ static void __init cpu_parse_early_param(void)
1507
1505
continue ;
1508
1506
}
1509
1507
1510
- #ifdef CONFIG_X86_FEATURE_NAMES
1511
1508
for (bit = 0 ; bit < 32 * NCAPINTS ; bit ++ ) {
1512
1509
if (!x86_cap_flag (bit ))
1513
1510
continue ;
@@ -1524,7 +1521,6 @@ static void __init cpu_parse_early_param(void)
1524
1521
1525
1522
if (!found )
1526
1523
pr_cont (" (unknown: %s)" , opt );
1527
- #endif
1528
1524
}
1529
1525
pr_cont ("\n" );
1530
1526
Original file line number Diff line number Diff line change @@ -508,4 +508,8 @@ INIT_PER_CPU(irq_stack_backing_store);
508
508
"fixed_percpu_data is not at start of per-cpu area" );
509
509
#endif
510
510
511
+ #ifdef CONFIG_RETHUNK
512
+ . = ASSERT((__x86_return_thunk & 0x3f ) == 0 , "__x86_return_thunk not cacheline-aligned" );
513
+ #endif
514
+
511
515
#endif /* CONFIG_X86_64 */
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ SYM_CODE_END(__x86_indirect_jump_thunk_array)
143
143
* from re-poisioning the BTB prediction.
144
144
*/
145
145
.align 64
146
- .skip 63 , 0xcc
146
+ .skip 64 - (__x86_return_thunk - zen_untrain_ret) , 0xcc
147
147
SYM_START(zen_untrain_ret, SYM_L_GLOBAL, SYM_A_NONE)
148
148
ANNOTATE_NOENDBR
149
149
/*
You can’t perform that action at this time.
0 commit comments