]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: lustre: NR_CPUS is always defined
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jul 2013 17:25:17 +0000 (10:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jul 2013 17:25:17 +0000 (10:25 -0700)
So don't redefine it.

Cc: Peng Tao <tao.peng@emc.com>
Cc: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/linux/linux-cpu.h
drivers/staging/lustre/include/linux/libcfs/linux/linux-prim.h
drivers/staging/lustre/include/linux/libcfs/linux/portals_compat25.h

index 36928791e75d0329511ee3885419c64b552acf9c..8dd354d51606c02528e433fe3c112e21f5c2b1c2 100644 (file)
@@ -81,7 +81,6 @@ struct cfs_cpt_table {
 
 /**
  * comment out definitions for compatible layer
- * #define CFS_CPU_NR                    NR_CPUS
  *
  * typedef cpumask_t                      cfs_cpumask_t;
  *
index 03903ab8f0ccb5d73ca2a6c32ca55b92e987f1ba..e2a6c10ae4e69ccbd4ab1c7e79a242a5c5250b8d 100644 (file)
 #define cfs_for_each_possible_cpu(cpu) for_each_cpu(cpu)
 #endif
 
-#ifdef NR_CPUS
-#else
-#define NR_CPUS     1
-#endif
-
 /*
  * Sysctl register
  */
index 132a4bec35757baa6dafa30a666c6eea082d6489..6cf758dbf9ef4a93de5f65821cdd85854c974661 100644 (file)
@@ -104,11 +104,6 @@ int proc_call_handler(void *data, int write,
 #define cfs_for_each_possible_cpu(cpu) for_each_cpu(cpu)
 #endif
 
-#ifdef NR_CPUS
-#else
-#define NR_CPUS     1
-#endif
-
 #define cfs_register_sysctl_table(t, a) register_sysctl_table(t)
 
 #endif /* _PORTALS_COMPAT_H */