]> err.no Git - linux-2.6/blobdiff - include/asm-powerpc/topology.h
[PATCH] smbfs endianness annotations
[linux-2.6] / include / asm-powerpc / topology.h
index 92f3e5507d224cfc1cbf80e10d7d6bc09647a804..8f7ee16781a4d6497c7fb0b8b79993768f67efc2 100644 (file)
@@ -43,6 +43,7 @@ extern int pcibus_to_node(struct pci_bus *bus);
 #define SD_NODE_INIT (struct sched_domain) {           \
        .span                   = CPU_MASK_NONE,        \
        .parent                 = NULL,                 \
+       .child                  = NULL,                 \
        .groups                 = NULL,                 \
        .min_interval           = 8,                    \
        .max_interval           = 32,                   \
@@ -93,5 +94,10 @@ static inline void sysfs_remove_device_from_node(struct sys_device *dev,
 
 #endif /* CONFIG_NUMA */
 
+#ifdef CONFIG_SMP
+#include <asm/cputable.h>
+#define smt_capable()          (cpu_has_feature(CPU_FTR_SMT))
+#endif
+
 #endif /* __KERNEL__ */
 #endif /* _ASM_POWERPC_TOPOLOGY_H */