* [PATCH] fix two unwrapped uses of thread_info->cpu
@ 2002-07-25 16:07 Mikael Pettersson
0 siblings, 0 replies; only message in thread
From: Mikael Pettersson @ 2002-07-25 16:07 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel, mingo
This patch for 2.5.28 fixes two explicit accesses to thread_info->cpu
in generic code to use the new UP-optimised macros instead.
/Mikael
diff -ruN linux-2.5.28/fs/proc/array.c linux-2.5.28.up-opt/fs/proc/array.c
--- linux-2.5.28/fs/proc/array.c Thu Jul 25 01:27:31 2002
+++ linux-2.5.28.up-opt/fs/proc/array.c Thu Jul 25 01:36:09 2002
@@ -386,7 +386,7 @@
task->nswap,
task->cnswap,
task->exit_signal,
- task->thread_info->cpu,
+ task_cpu(task),
task->rt_priority,
task->policy);
if(mm)
diff -ruN linux-2.5.28/kernel/sched.c linux-2.5.28.up-opt/kernel/sched.c
--- linux-2.5.28/kernel/sched.c Thu Jul 25 01:27:31 2002
+++ linux-2.5.28.up-opt/kernel/sched.c Thu Jul 25 01:42:20 2002
@@ -357,7 +357,7 @@
*/
void kick_if_running(task_t * p)
{
- if ((task_running(task_rq(p), p)) && (p->thread_info->cpu != smp_processor_id()))
+ if ((task_running(task_rq(p), p)) && (task_cpu(p) != smp_processor_id()))
resched_task(p);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-07-25 16:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-25 16:07 [PATCH] fix two unwrapped uses of thread_info->cpu Mikael Pettersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).