]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/s390/include/asm/numa.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / arch / s390 / include / asm / numa.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
3a368f74
PH
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);
20int __node_distance(int a, int b);
21void numa_update_cpu_topology(void);
22
22be9cd9 23extern cpumask_t node_to_cpumask_map[MAX_NUMNODES];
3a368f74
PH
24extern int numa_debug_enabled;
25
26#else
27
28static inline void numa_setup(void) { }
29static inline void numa_update_cpu_topology(void) { }
c29a7baf
MH
30static inline int numa_pfn_to_nid(unsigned long pfn)
31{
32 return 0;
33}
3a368f74
PH
34
35#endif /* CONFIG_NUMA */
36#endif /* _ASM_S390_NUMA_H */