-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable core NUMA support for s390 and add one simple default mode "plain" that creates one single NUMA node. This patch contains several changes from Michael Holzheu. Signed-off-by: Philipp Hachtmann <phacht@linux.vnet.ibm.com> Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
- Loading branch information
Philipp Hachtmann
authored and
Martin Schwidefsky
committed
Aug 3, 2015
1 parent
199071f
commit 3a368f7
Showing
15 changed files
with
375 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* NUMA support for s390 | ||
* | ||
* Copyright IBM Corp. 2015 | ||
*/ | ||
|
||
#ifndef _ASM_S390_MMZONE_H | ||
#define _ASM_S390_MMZONE_H | ||
|
||
#ifdef CONFIG_NUMA | ||
|
||
extern struct pglist_data *node_data[]; | ||
#define NODE_DATA(nid) (node_data[nid]) | ||
|
||
#endif /* CONFIG_NUMA */ | ||
#endif /* _ASM_S390_MMZONE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* NUMA support for s390 | ||
* | ||
* Declare the NUMA core code structures and functions. | ||
* | ||
* Copyright IBM Corp. 2015 | ||
*/ | ||
|
||
#ifndef _ASM_S390_NUMA_H | ||
#define _ASM_S390_NUMA_H | ||
|
||
#ifdef CONFIG_NUMA | ||
|
||
#include <linux/numa.h> | ||
#include <linux/cpumask.h> | ||
|
||
void numa_setup(void); | ||
int numa_pfn_to_nid(unsigned long pfn); | ||
int __node_distance(int a, int b); | ||
void numa_update_cpu_topology(void); | ||
|
||
extern cpumask_var_t node_to_cpumask_map[MAX_NUMNODES]; | ||
extern int numa_debug_enabled; | ||
|
||
#else | ||
|
||
static inline void numa_setup(void) { } | ||
static inline void numa_update_cpu_topology(void) { } | ||
|
||
#endif /* CONFIG_NUMA */ | ||
#endif /* _ASM_S390_NUMA_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
obj-y += numa.o |
Oops, something went wrong.