staging/lustre: get_cpu is always defined
Cc: Andreas Dilger <andreas.dilger@intel.com> Signed-off-by: Peng Tao <bergwolf@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bace1077ff
commit
9f773620f1
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user