Re: [PATCH] x86, acpi: Make acpi_processor_ffh_cstate_probe() usea work item instead of work_on_cpu()

From: Tejun Heo
Date: Mon Sep 17 2012 - 17:37:44 EST


On Thu, Aug 23, 2012 at 05:26:43PM -0700, Tejun Heo wrote:
> Workqueue is guaranteed to be available on the target CPU by the time
> acpi_processor_ffh_cstate_probe() is invoked for it. There's no
> reason to use costly work_on_cpu() which involves creating and tearing
> down a full kthread on each invocation to execute the probing function
> on the target CPU. Use a work item instead.
>
> Tested and works as expected.
>
> Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>

Please forget about this patch (doesn't seem like it has been applied
yet). Planning on reimplementing work_on_cpu() using system_wq
instead.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/