Files
OrangePi_CM5/arch/powerpc/include/asm/mmzone.h
T

46 lines
994 B
C
Raw Normal View History

2005-04-16 15:20:36 -07:00
/*
* Written by Kanoj Sarcar (kanoj@sgi.com) Aug 99
*
* PowerPC64 port:
* Copyright (C) 2002 Anton Blanchard, IBM Corp.
*/
#ifndef _ASM_MMZONE_H_
#define _ASM_MMZONE_H_
#ifdef __KERNEL__
2005-04-16 15:20:36 -07:00
#include <linux/cpumask.h>
2005-04-16 15:20:36 -07:00
/*
* generic non-linear memory support:
2005-06-23 00:08:03 -07:00
*
* 1) we will not split memory into more chunks than will fit into the
* flags field of the struct page
*/
#ifdef CONFIG_NEED_MULTIPLE_NODES
2005-04-16 15:20:36 -07:00
extern struct pglist_data *node_data[];
2005-06-23 00:08:03 -07:00
/*
* Return a pointer to the node data for node n.
*/
#define NODE_DATA(nid) (node_data[nid])
2005-04-16 15:20:36 -07:00
/*
* Following are specific to this numa platform.
*/
extern int numa_cpu_lookup_table[];
extern cpumask_var_t node_to_cpumask_map[];
2005-11-04 15:20:24 -08:00
#ifdef CONFIG_MEMORY_HOTPLUG
extern unsigned long max_pfn;
2010-10-26 17:35:12 +00:00
u64 memory_hotplug_max(void);
#else
#define memory_hotplug_max() memblock_end_of_DRAM()
2005-11-04 15:20:24 -08:00
#endif
2005-04-16 15:20:36 -07:00
2010-10-26 17:35:12 +00:00
#else
#define memory_hotplug_max() memblock_end_of_DRAM()
2005-06-23 00:08:03 -07:00
#endif /* CONFIG_NEED_MULTIPLE_NODES */
#endif /* __KERNEL__ */
2005-04-16 15:20:36 -07:00
#endif /* _ASM_MMZONE_H_ */