Skip to content

Commit 92853a7

Browse files
committed
x86/cpu: Move __max_die_per_package to common.c
In preparation of a complete replacement for the topology leaf 0xb/0x1f evaluation, move __max_die_per_package into the common code. Will be removed once everything is converted over. Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Juergen Gross <[email protected]> Tested-by: Sohil Mehta <[email protected]> Tested-by: Michael Kelley <[email protected]> Tested-by: Zhang Rui <[email protected]> Tested-by: Wang Wendy <[email protected]> Tested-by: K Prateek Nayak <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 598e719 commit 92853a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/x86/kernel/cpu/common.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ u32 elf_hwcap2 __read_mostly;
7676
int smp_num_siblings = 1;
7777
EXPORT_SYMBOL(smp_num_siblings);
7878

79+
unsigned int __max_die_per_package __read_mostly = 1;
80+
EXPORT_SYMBOL(__max_die_per_package);
81+
7982
static struct ppin_info {
8083
int feature;
8184
int msr_ppin_ctl;

arch/x86/kernel/cpu/topology.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
#define BITS_SHIFT_NEXT_LEVEL(eax) ((eax) & 0x1f)
2626
#define LEVEL_MAX_SIBLINGS(ebx) ((ebx) & 0xffff)
2727

28-
unsigned int __max_die_per_package __read_mostly = 1;
29-
EXPORT_SYMBOL(__max_die_per_package);
30-
3128
#ifdef CONFIG_SMP
3229
/*
3330
* Check if given CPUID extended topology "leaf" is implemented

0 commit comments

Comments
 (0)