Re: [PATCH -rt 1/5] workqueue: queue_work_cpu

Oleg Nesterov
2007-07-14T17:12:45Z

On 07/14, Peter Zijlstra wrote:
>
> +int fastcall queue_work_cpu(struct workqueue_struct *wq, struct work_struct *work, int cpu)
> +{
> + int ret = 0;
> +
> + if (!test_and_set_bit(WORK_STRUCT_PENDING, work_data_bits(work))) {
> + BUG_ON(!list_empty(&work->entry));
> + __queue_work(wq_per_cpu(wq, cpu), work);
> + ret = 1;
> + }
> + return ret;
> +}

Minor nit, we already have queue_delayed_work_on(), perhaps it should be named
queue_work_on().

Oleg.