blob: c759dcffa9eaf3d1ff97ffd5aead396c1b28a6e0 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * NUMA support for s390
4 *
5 * Declare the NUMA core code structures and functions.
6 *
7 * Copyright IBM Corp. 2015
8 */
9
10#ifndef _ASM_S390_NUMA_H
11#define _ASM_S390_NUMA_H
12
13#ifdef CONFIG_NUMA
14
15#include <linux/numa.h>
16#include <linux/cpumask.h>
17
18void numa_setup(void);
19int numa_pfn_to_nid(unsigned long pfn);
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000020void numa_update_cpu_topology(void);
21
22extern cpumask_t node_to_cpumask_map[MAX_NUMNODES];
23extern int numa_debug_enabled;
24
25#else
26
27static inline void numa_setup(void) { }
28static inline void numa_update_cpu_topology(void) { }
29static inline int numa_pfn_to_nid(unsigned long pfn)
30{
31 return 0;
32}
33
34#endif /* CONFIG_NUMA */
35#endif /* _ASM_S390_NUMA_H */