blob: dfd3e27840817ca583da975bf734e35d53c0faca [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Philipp Hachtmann3a368f72014-03-06 18:25:13 +01002/*
3 * NUMA support for s390
4 *
5 * Define declarations used for communication between NUMA mode
6 * implementations and NUMA core functionality.
7 *
8 * Copyright IBM Corp. 2015
9 */
10#ifndef __S390_NUMA_MODE_H
11#define __S390_NUMA_MODE_H
12
13struct numa_mode {
14 char *name; /* Name of mode */
15 void (*setup)(void); /* Initizalize mode */
16 void (*update_cpu_topology)(void); /* Called by topology code */
17 int (*__pfn_to_nid)(unsigned long pfn); /* PFN to node ID */
18 unsigned long (*align)(void); /* Minimum node alignment */
19 int (*distance)(int a, int b); /* Distance between two nodes */
20};
21
22extern const struct numa_mode numa_mode_plain;
Michael Holzheuc29a7ba2014-03-06 18:47:21 +010023extern const struct numa_mode numa_mode_emu;
Philipp Hachtmann3a368f72014-03-06 18:25:13 +010024
25#endif /* __S390_NUMA_MODE_H */