Skip to content
Commit 873392ca authored by Rusty Russell's avatar Rusty Russell Committed by Jesse Barnes
Browse files

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: default avatarRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent a79d682f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment