sched, block: Unify cache detection
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 26 Jan 2012 11:44:34 +0000 (12:44 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 27 Jan 2012 12:28:48 +0000 (13:28 +0100)
commit39be350127ec60a078edffe5b4915dafba4ba514
tree9b1ad6ee75c3b5842434b697b96ccdfbe1a40a2f
parentcb297a3e433dbdcf7ad81e0564e7b804c941ff0d
sched, block: Unify cache detection

The block layer has some code trying to determine if two CPUs share a
cache, the scheduler has a similar function. Expose the function used
by the scheduler and make the block layer use it, thereby removing the
block layers usage of CONFIG_SCHED* and topology bits.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Jens Axboe <axboe@kernel.dk>
Link: http://lkml.kernel.org/r/1327579450.2446.95.camel@twins
block/blk-softirq.c
block/blk.h
include/linux/sched.h
kernel/sched/core.c