Explorar o código

Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc

* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
  powerpc: Fix build for 32-bit SMP configs
Linus Torvalds %!s(int64=17) %!d(string=hai) anos
pai
achega
ecf318cc3d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      arch/powerpc/kernel/sysfs.c

+ 2 - 0
arch/powerpc/kernel/sysfs.c

@@ -717,9 +717,11 @@ static void unregister_cpu_online(unsigned int cpu)
 
 	BUG_ON(!c->hotpluggable);
 
+#ifdef CONFIG_PPC64
 	if (!firmware_has_feature(FW_FEATURE_ISERIES) &&
 			cpu_has_feature(CPU_FTR_SMT))
 		sysdev_remove_file(s, &attr_smt_snooze_delay);
+#endif
 
 	/* PMC stuff */
 	switch (cur_cpu_spec->pmc_type) {