Commit 06868c17 authored by Mikael Pettersson's avatar Mikael Pettersson Committed by Linus Torvalds

[PATCH] fix two unwrapped uses of thread_info->cpu

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.
parent d53948eb
......@@ -386,7 +386,7 @@ int proc_pid_stat(struct task_struct *task, char * buffer)
task->nswap,
task->cnswap,
task->exit_signal,
task->thread_info->cpu,
task_cpu(task),
task->rt_priority,
task->policy);
if(mm)
......
......@@ -357,7 +357,7 @@ void wait_task_inactive(task_t * p)
*/
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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment