NUMA Balancing: add page promotion counter
[platform/kernel/linux-starfive.git] / include / linux / node.h
index bb21fd6..81bbf1c 100644 (file)
@@ -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_ */