Commit 1201e10a authored by Tejun Heo's avatar Tejun Heo

x86, NUMA: trivial cleanups

* Kill no longer used struct bootnode.

* Kill dangling declaration of pxm_to_nid() in numa_32.h.

* Make setup_node_bootmem() static.
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
parent 797390d8
...@@ -183,8 +183,6 @@ static inline void disable_acpi(void) { } ...@@ -183,8 +183,6 @@ static inline void disable_acpi(void) { }
#define ARCH_HAS_POWER_INIT 1 #define ARCH_HAS_POWER_INIT 1
struct bootnode;
#ifdef CONFIG_ACPI_NUMA #ifdef CONFIG_ACPI_NUMA
extern int acpi_numa; extern int acpi_numa;
extern int x86_acpi_numa_init(void); extern int x86_acpi_numa_init(void);
......
...@@ -11,7 +11,6 @@ struct amd_nb_bus_dev_range { ...@@ -11,7 +11,6 @@ struct amd_nb_bus_dev_range {
extern const struct pci_device_id amd_nb_misc_ids[]; extern const struct pci_device_id amd_nb_misc_ids[];
extern const struct amd_nb_bus_dev_range amd_nb_bus_dev_ranges[]; extern const struct amd_nb_bus_dev_range amd_nb_bus_dev_ranges[];
struct bootnode;
extern bool early_is_amd_nb(u32 value); extern bool early_is_amd_nb(u32 value);
extern int amd_cache_northbridges(void); extern int amd_cache_northbridges(void);
......
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
extern int numa_off; extern int numa_off;
extern int pxm_to_nid(int pxm);
#ifdef CONFIG_HIGHMEM #ifdef CONFIG_HIGHMEM
extern void set_highmem_pages_init(void); extern void set_highmem_pages_init(void);
#else #else
......
...@@ -3,18 +3,11 @@ ...@@ -3,18 +3,11 @@
#include <linux/nodemask.h> #include <linux/nodemask.h>
struct bootnode {
u64 start;
u64 end;
};
#define ZONE_ALIGN (1UL << (MAX_ORDER+PAGE_SHIFT)) #define ZONE_ALIGN (1UL << (MAX_ORDER+PAGE_SHIFT))
extern int numa_off; extern int numa_off;
extern unsigned long numa_free_all_bootmem(void); extern unsigned long numa_free_all_bootmem(void);
extern void setup_node_bootmem(int nodeid, unsigned long start,
unsigned long end);
#ifdef CONFIG_NUMA #ifdef CONFIG_NUMA
/* /*
......
...@@ -95,7 +95,7 @@ int __init numa_add_memblk(int nid, u64 start, u64 end) ...@@ -95,7 +95,7 @@ int __init numa_add_memblk(int nid, u64 start, u64 end)
} }
/* Initialize bootmem allocator for a node */ /* Initialize bootmem allocator for a node */
void __init static void __init
setup_node_bootmem(int nid, unsigned long start, unsigned long end) setup_node_bootmem(int nid, unsigned long start, unsigned long end)
{ {
const u64 nd_low = (u64)MAX_DMA_PFN << PAGE_SHIFT; const u64 nd_low = (u64)MAX_DMA_PFN << PAGE_SHIFT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment