Re: [Patch 4/7] softirq: Use hotplug thread infrastructure

From: JoonSoo Kim
Date: Wed Jul 25 2012 - 10:21:10 EST


2012/7/16 Thomas Gleixner <tglx@xxxxxxxxxxxxx>:
> - static const struct sched_param param = {
> - .sched_priority = MAX_RT_PRIO-1
> - };
> -
> - p = per_cpu(ksoftirqd, hotcpu);
> - per_cpu(ksoftirqd, hotcpu) = NULL;
> - sched_setscheduler_nocheck(p, SCHED_FIFO, &param);
> - kthread_stop(p);
> + int hotcpu = (unsigned long)hcpu;
> +
> takeover_tasklets(hotcpu);
> break;

Currently, "int hotcpu = (unsigned long)hcpu;" is somewhat strange.
"takeover_tasklets((unsigned long)hcpu)" is sufficient for me.
--
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/