mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
mm: use IS_ENABLED(CONFIG_NUMA) instead of NUMA_BUILD
We don't need custom NUMA_BUILD anymore, since we have handy IS_ENABLED(). Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
19965460e3
commit
e5adfffc85
4 changed files with 13 additions and 18 deletions
|
@ -2550,7 +2550,7 @@ static void s_stop(struct seq_file *m, void *p)
|
|||
|
||||
static void show_numa_info(struct seq_file *m, struct vm_struct *v)
|
||||
{
|
||||
if (NUMA_BUILD) {
|
||||
if (IS_ENABLED(CONFIG_NUMA)) {
|
||||
unsigned int nr, *counters = m->private;
|
||||
|
||||
if (!counters)
|
||||
|
@ -2615,7 +2615,7 @@ static int vmalloc_open(struct inode *inode, struct file *file)
|
|||
unsigned int *ptr = NULL;
|
||||
int ret;
|
||||
|
||||
if (NUMA_BUILD) {
|
||||
if (IS_ENABLED(CONFIG_NUMA)) {
|
||||
ptr = kmalloc(nr_node_ids * sizeof(unsigned int), GFP_KERNEL);
|
||||
if (ptr == NULL)
|
||||
return -ENOMEM;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue