mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
sh: drop dead code guarded by #ifdef CONFIG_NUMA
and NUMA-related comments. Link: https://lore.kernel.org/20260510135546.13554-6-rppt@kernel.org Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Cc: Rich Felker <dalias@libc.org> Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
This commit is contained in:
parent
f979745fc6
commit
acce12b992
|
|
@ -2,19 +2,6 @@
|
|||
#ifndef _ASM_SH_TOPOLOGY_H
|
||||
#define _ASM_SH_TOPOLOGY_H
|
||||
|
||||
#ifdef CONFIG_NUMA
|
||||
|
||||
#define cpu_to_node(cpu) ((void)(cpu),0)
|
||||
|
||||
#define cpumask_of_node(node) ((void)node, cpu_online_mask)
|
||||
|
||||
#define pcibus_to_node(bus) ((void)(bus), -1)
|
||||
#define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \
|
||||
cpu_all_mask : \
|
||||
cpumask_of_node(pcibus_to_node(bus)))
|
||||
|
||||
#endif
|
||||
|
||||
#define mc_capable() (1)
|
||||
|
||||
const struct cpumask *cpu_coregroup_mask(int cpu);
|
||||
|
|
|
|||
|
|
@ -227,7 +227,6 @@ void __init __add_active_range(unsigned int nid, unsigned long start_pfn,
|
|||
/*
|
||||
* Also make sure that there is a PMB mapping that covers this
|
||||
* range before we attempt to activate it, to avoid reset by MMU.
|
||||
* We can hit this path with NUMA or memory hot-add.
|
||||
*/
|
||||
pmb_bolt_mapping((unsigned long)__va(start), start, end - start,
|
||||
PAGE_KERNEL);
|
||||
|
|
|
|||
|
|
@ -57,18 +57,6 @@ static int __init topology_init(void)
|
|||
__func__, i, ret);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_NUMA) && !defined(CONFIG_SMP)
|
||||
/*
|
||||
* In the UP case, make sure the CPU association is still
|
||||
* registered under each node. Without this, sysfs fails
|
||||
* to make the connection between nodes other than node0
|
||||
* and cpu0.
|
||||
*/
|
||||
for_each_online_node(i)
|
||||
if (i != numa_node_id())
|
||||
register_cpu_under_node(raw_smp_processor_id(), i);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
subsys_initcall(topology_init);
|
||||
|
|
|
|||
|
|
@ -5,10 +5,6 @@
|
|||
|
||||
void arch_crash_save_vmcoreinfo(void)
|
||||
{
|
||||
#ifdef CONFIG_NUMA
|
||||
VMCOREINFO_SYMBOL(node_data);
|
||||
VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);
|
||||
#endif
|
||||
#ifdef CONFIG_X2TLB
|
||||
VMCOREINFO_CONFIG(X2TLB);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -16,8 +16,7 @@
|
|||
* This provides a standard SRAM pool for tiny memories that can be
|
||||
* added either by the CPU or the platform code. Typical SRAM sizes
|
||||
* to be inserted in to the pool will generally be less than the page
|
||||
* size, with anything more reasonably sized handled as a NUMA memory
|
||||
* node.
|
||||
* size.
|
||||
*/
|
||||
struct gen_pool *sram_pool;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user