[PATCH] 2.4-ac resend: SMP compile fix for sched.c

Robert Love (rml@tech9.net)
14 May 2002 09:49:17 -0700


--=-aMXaJT07RqPEUQwnEPXR
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Alan,

Attached patch fixes the CONFIG_SMP compile error in kernel/sched.c due
to my latest O(1) scheduler patches that went into -ac2. I apologize
for the slip - not sure how I missed the error.

Patch is against 2.4.19-pre8-ac3 - please apply. Thanks,

Robert Love

--=-aMXaJT07RqPEUQwnEPXR
Content-Disposition: attachment; filename=sched-compile-fix-rml-2.4.19-pre8-ac3-1.patch
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-patch; name=sched-compile-fix-rml-2.4.19-pre8-ac3-1.patch;
charset=ISO-8859-1

diff -urN linux-2.4.19-pre8-ac3/kernel/sched.c linux/kernel/sched.c
--- linux-2.4.19-pre8-ac3/kernel/sched.c Tue May 14 09:40:05 2002
+++ linux/kernel/sched.c Tue May 14 09:46:56 2002
@@ -1592,18 +1592,18 @@
cpu_dest =3D __ffs(p->cpus_allowed);
rq_dest =3D cpu_rq(cpu_dest);
repeat:
- cpu_src =3D p->thread_info->cpu;
+ cpu_src =3D p->cpu;
rq_src =3D cpu_rq(cpu_src);
=20
local_irq_save(flags);
double_rq_lock(rq_src, rq_dest);
- if (p->thread_info->cpu !=3D cpu_src) {
+ if (p->cpu !=3D cpu_src) {
double_rq_unlock(rq_src, rq_dest);
local_irq_restore(flags);
goto repeat;
}
if (rq_src =3D=3D rq) {
- p->thread_info->cpu =3D cpu_dest;
+ p->cpu =3D cpu_dest;
if (p->array) {
deactivate_task(p, rq_src);
activate_task(p, rq_dest);

--=-aMXaJT07RqPEUQwnEPXR--

-
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/