Whamcloud - gitweb
LU-1346 libcfs: cleanup macros in kp30.h 76/4776/5
authorJames Simmons <uja.ornl@gmail.com>
Mon, 15 Jul 2013 21:39:09 +0000 (17:39 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 10 Aug 2013 04:50:05 +0000 (04:50 +0000)
commit9c6ebfd11be1cc11629a2960c8c818492e1f0980
treec78bdf55984b34be36fcb0d4bc69dd36d1b7ff41
parent356c89a106229bf33fc2897d346c55aaadfd6c82
LU-1346 libcfs: cleanup macros in kp30.h

Some macro cleanup in kp30.h

Some other changes:
. removes some unused/reduplicate macros such as
our_recalc_sigpending, prepare_work, cfs_get_work_data, strtok,
work_struct_t, SEM_COUNT, PORTAL_SYMBOL_REGISTER/UNREGISTER,
cfs_num_present_cpus, cfs_num_present_cpus
. moves some different kernel version compatible macros/inlines to
  portals_compat25.h
. needs not differentiate CONFIG_SMP for LASSERT_SPIN_LOCKED
. get/put_cpu is avaiable for both SMP and !SMP

This patch does not change LWT(Light-weight trace) related code.

Signed-off-by: Liu Xuezhao <xuezhao.liu@emc.com>
Signed-off-by: Peng Tao <tao.peng@emc.com>
Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: Iaa3cda88d539f3d7e677b7accda99b476daeddca
Reviewed-on: http://review.whamcloud.com/4776
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
43 files changed:
contrib/scripts/libcfs_cleanup.sed
libcfs/include/libcfs/darwin/kp30.h
libcfs/include/libcfs/linux/kp30.h
libcfs/include/libcfs/user-lock.h
libcfs/include/libcfs/user-prim.h
libcfs/include/libcfs/winnt/kp30.h
libcfs/include/libcfs/winnt/winnt-prim.h
libcfs/libcfs/darwin/darwin-tracefile.c
libcfs/libcfs/debug.c
libcfs/libcfs/linux/linux-tracefile.c
libcfs/libcfs/lwt.c
libcfs/libcfs/posix/posix-debug.c
libcfs/libcfs/tracefile.c
libcfs/libcfs/tracefile.h
libcfs/libcfs/winnt/winnt-tcpip.c
libcfs/libcfs/winnt/winnt-tracefile.c
lnet/klnds/ptllnd/ptllnd.h
lnet/klnds/qswlnd/qswlnd.c
lnet/klnds/socklnd/socklnd_lib-winnt.h
lustre/fld/fld_index.c
lustre/include/lprocfs_status.h
lustre/include/lustre_dlm.h
lustre/include/lustre_net.h
lustre/ldlm/ldlm_resource.c
lustre/llite/dir.c
lustre/llite/llite_internal.h
lustre/lov/lov_merge.c
lustre/obdclass/cl_lock.c
lustre/obdclass/cl_object.c
lustre/obdclass/cl_page.c
lustre/obdclass/lprocfs_status.c
lustre/ofd/ofd_fmd.c
lustre/ofd/ofd_grant.c
lustre/ofd/ofd_lvb.c
lustre/osc/osc_cache.c
lustre/osd-ldiskfs/osd_iam.c
lustre/ptlrpc/client.c
lustre/ptlrpc/gss/gss_pipefs.c
lustre/ptlrpc/import.c
lustre/ptlrpc/pinger.c
lustre/ptlrpc/ptlrpcd.c
lustre/ptlrpc/sec_bulk.c
lustre/ptlrpc/service.c