[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kdb: task_has_cpu not found
On Wed, 2002-02-13 at 15:44, Ionut Georgescu wrote:
>
> Yes ... it was somewhere there on the list :)) It seemed that the
> original files had all gone into *.orig's after applying the patch ...
> Therefore my grep -r theory.
>
> Is there a way to solve this ? I have turned kdb off meanwhile and I'm
> prepairing to reboot.
here is a small patch to fix this, turns out the only usage of this is
the ps printk in kdb...
-tduffy
--- ../../linux-2.4.17+kdb-v2.1-2/kdb/kdbmain.c Fri Feb 1 13:46:20 2002
+++ kdbmain.c Wed Feb 13 15:53:01 2002
@@ -2344,7 +2344,7 @@
for_each_task(p) {
kdb_printf("0x%p %08d %08d %1.1d %3.3d %s 0x%p%c%s\n",
(void *)p, p->pid, p->p_pptr->pid,
- task_has_cpu(p), p->processor,
+ (p->state == TASK_RUNNING), p->cpu,
(p->state == 0)?"run ":(p->state>0)?"stop":"unrn",
(void *)(&p->thread),
(p == current) ? '*': ' ',