Whamcloud - gitweb
LU-9859 libcfs: rearrange placement of CPU partition management code. 59/32359/3
authorNeilBrown <neilb@suse.com>
Sat, 12 May 2018 13:51:30 +0000 (09:51 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 21 May 2018 16:54:05 +0000 (16:54 +0000)
commit454a5f5c5496bdea667223a1608d885024f658af
treeed66d564e5bcf0b6c2e723cdae88371284155a56
parent734d944d98f4cbcaeebc462e979624e8bdfb7711
LU-9859 libcfs: rearrange placement of CPU partition management code.

Currently the code for cpu-partition tables lives in various places.
The non-SMP code is partly in libcfs/libcfs_cpu.h as static inlines,
and partly in lnet/libcfs/libcfs_cpu.c - some of the functions are
tiny and could well be inlines.

The SMP code is all in lnet/libcfs/linux/linux-cpu.c.

This patch moves all the trivial non-SMP functions into
libcfs_cpu.h as inlines, and all the SMP functions into libcfs_cpu.c
with the non-trival !SMP code.

Now when you go looking for some function, it is easier to find both
versions together when neither is trivial.

There is no code change here - just code movement.

Linux-commit: 93aa2c2a5091bd47819a3ead4af70fb57fda5065

Change-Id: I5250a52cad576eaeec17de176a3ca45ad076c4b9
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/32359
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Doug Oucharek <dougso@me.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/include/libcfs/libcfs_cpu.h
libcfs/libcfs/Makefile.in
libcfs/libcfs/libcfs_cpu.c
libcfs/libcfs/linux/Makefile.am
libcfs/libcfs/linux/linux-cpu.c [deleted file]