lkml.org 
[lkml]   [2002]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] 2.4-ac: sched.c compile fix
From
Date
Alan,

This fixes the compile error under SMP for 2.4.19-pre8-ac2 in sched.c
due to the latest scheduling changes.

I do not know how I missed this - much apologies. Please apply.

Robert Love



diff -urN linux-2.4.19-pre8-ac2/kernel/sched.c linux/kernel/sched.c
--- linux-2.4.19-pre8-ac2/kernel/sched.c Mon May 13 09:15:12 2002
+++ linux/kernel/sched.c Mon May 13 09:19:32 2002
@@ -1592,18 +1592,18 @@
cpu_dest = __ffs(p->cpus_allowed);
rq_dest = cpu_rq(cpu_dest);
repeat:
- cpu_src = p->thread_info->cpu;
+ cpu_src = p->cpu;
rq_src = cpu_rq(cpu_src);

local_irq_save(flags);
double_rq_lock(rq_src, rq_dest);
- if (p->thread_info->cpu != cpu_src) {
+ if (p->cpu != cpu_src) {
double_rq_unlock(rq_src, rq_dest);
local_irq_restore(flags);
goto repeat;
}
if (rq_src == rq) {
- p->thread_info->cpu = cpu_dest;
+ p->cpu = cpu_dest;
if (p->array) {
deactivate_task(p, rq_src);
activate_task(p, rq_dest);
\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.020 / U:4.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site