lkml.org 
[lkml]   [2008]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 1/1] work_on_cpu: use in drivers/pci/pci-driver.c
Date
On Monday, December 01, 2008 12:20 am Rusty Russell wrote:
> 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>
> Cc: Jesse Barnes <jbarnes@virtuousgeek.org>

Nice, I applied this to my linux-next branch to get some build/test coverage.
Please cc linux-pci in the future though.

--
Jesse Barnes, Intel Open Source Technology Center


\
 
 \ /
  Last update: 2008-12-10 00:03    [W:2.531 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site