Re: [PATCH] 2.4-ac task->cpu abstraction and optimization

From: Mikael Pettersson (mikpe@csd.uu.se)
Date: Thu Sep 12 2002 - 01:52:24 EST


Robert Love writes:
> Alan,
>
> Implement "task_cpu()" and "set_task_cpu()" as wrappers for reading and
> writing task->cpu, respectively.
>
> Additionally, introduce a nice optimization: on UP, task_cpu() can
> hard-code to "0" and set_task_cpu() can be a no-op.
>
> Patch is against 2.4.20-pre5-ac4, please apply.

This is fairly similar to the "up-opt" patch I have been using for my
2.4 standard (not -ac) kernels since last winter, available as
<http://www.csd.uu.se/~mikpe/linux/patches/2.4/patch-up-opt-2.4.20-pre6>.
It's not a direct substitute for yours, since -ac changes kernel/sched.c
quite a bit, and it has some unnecessary patches to SMP code, but other
than that, I totally agree with the intention of your patch.

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



This archive was generated by hypermail 2b29 : Sun Sep 15 2002 - 22:00:28 EST