staging/lustre: get_cpu is always defined
authorPeng Tao <bergwolf@gmail.com>
Tue, 19 Nov 2013 14:38:45 +0000 (22:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Nov 2013 18:44:55 +0000 (10:44 -0800)
Cc: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/linux/kp30.h

index 44f490ca782e9d51f6b76b5965622406770a7ee5..e6f03c7ae00680da12a9df96ccf8ac90e0c38b3b 100644 (file)
@@ -206,18 +206,6 @@ extern int  lwt_snapshot (cfs_cycles_t *now, int *ncpu, int *total_size,
 
 /* compat macroses */
 
-
-#ifndef get_cpu
-# ifdef CONFIG_PREEMPT
-#  define get_cpu()  ({ preempt_disable(); smp_processor_id(); })
-#  define put_cpu()  preempt_enable()
-# else
-#  define get_cpu()  smp_processor_id()
-#  define put_cpu()
-# endif
-#else
-#endif /* get_cpu & put_cpu */
-
 #define INIT_CTL_NAME(a)
 #define INIT_STRATEGY(a)