File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -93,19 +93,6 @@ extern void __init dump_numa_cpu_topology(void);
9393extern int sysfs_add_device_to_node (struct sys_device * dev , int nid );
9494extern void sysfs_remove_device_from_node (struct sys_device * dev , int nid );
9595
96- #ifdef CONFIG_PPC_SPLPAR
97- extern int start_topology_update (void );
98- extern int stop_topology_update (void );
99- #else
100- static inline int start_topology_update (void )
101- {
102- return 0 ;
103- }
104- static inline int stop_topology_update (void )
105- {
106- return 0 ;
107- }
108- #endif /* CONFIG_PPC_SPLPAR */
10996#else
11097
11198static inline void dump_numa_cpu_topology (void ) {}
@@ -121,6 +108,20 @@ static inline void sysfs_remove_device_from_node(struct sys_device *dev,
121108}
122109#endif /* CONFIG_NUMA */
123110
111+ #if defined(CONFIG_NUMA ) && defined(CONFIG_PPC_SPLPAR )
112+ extern int start_topology_update (void );
113+ extern int stop_topology_update (void );
114+ #else
115+ static inline int start_topology_update (void )
116+ {
117+ return 0 ;
118+ }
119+ static inline int stop_topology_update (void )
120+ {
121+ return 0 ;
122+ }
123+ #endif /* CONFIG_NUMA && CONFIG_PPC_SPLPAR */
124+
124125#include <asm-generic/topology.h>
125126
126127#ifdef CONFIG_SMP
Original file line number Diff line number Diff line change @@ -1296,7 +1296,6 @@ static u8 vphn_cpu_change_counts[NR_CPUS][VPHN_NR_CHANGE_CTRS];
12961296static cpumask_t cpu_associativity_changes_mask ;
12971297static int vphn_enabled ;
12981298static void set_topology_timer (void );
1299- int stop_topology_update (void );
13001299
13011300/*
13021301 * Store the current values of the associativity change counters in the
You can’t perform that action at this time.
0 commit comments