]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
PCI: work_on_cpu: use in drivers/pci/pci-driver.c
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Dec 2008 13:24:56 +0000 (23:54 +1030)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:13:09 +0000 (11:13 -0800)
commit873392ca514f87eae39f53b6944caf85b1a047cb
tree510d70a5a8efb122139f5ada4363b3f5985663a4
parenta79d682f789730dfabaebbb507c87a90c0671a62
PCI: work_on_cpu: use in drivers/pci/pci-driver.c

This uses work_on_cpu(), rather than altering the cpumask of the
thread which we happen to be.

Note the cleanups:

1) I've removed the CONFIG_NUMA test, since dev_to_node() returns -1
   for !CONFIG_NUMA anyway and the compiler will eliminate it.

2) No need to reset mempolicy to default (a bad idea anyway) since
   work_on_cpu is run from a workqueue.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci-driver.c