projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NUMA Balancing: add page promotion counter
[platform/kernel/linux-starfive.git]
/
include
/
linux
/
node.h
diff --git
a/include/linux/node.h
b/include/linux/node.h
index
bb21fd6
..
81bbf1c
100644
(file)
--- a/
include/linux/node.h
+++ b/
include/linux/node.h
@@
-181,4
+181,9
@@
static inline void register_hugetlbfs_with_node(node_registration_func_t reg,
#define to_node(device) container_of(device, struct node, dev)
+static inline bool node_is_toptier(int node)
+{
+ return node_state(node, N_CPU);
+}
+
#endif /* _LINUX_NODE_H_ */