diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2010-05-20 22:04:21 -0400 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2010-05-20 22:04:21 -0400 |
commit | 67fc4e0cb931d6b4ccf21248e4199b154478ecea (patch) | |
tree | 4cf49d00bc9ac03c3c77d91fadd13fcabc75e0c9 /kernel/sched.c | |
parent | 5d5314d6795f3c1c0f415348ff8c51f7de042b77 (diff) |
kdb: core for kgdb back end (2 of 2)
This patch contains the hooks and instrumentation into kernel which
live outside the kernel/debug directory, which the kdb core
will call to run commands like lsmod, dmesg, bt etc...
CC: linux-arch@vger.kernel.org
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Martin Hicks <mort@sgi.com>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 1d93cd0ae4d3..a25c1324af54 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -7758,9 +7758,9 @@ void normalize_rt_tasks(void) | |||
7758 | 7758 | ||
7759 | #endif /* CONFIG_MAGIC_SYSRQ */ | 7759 | #endif /* CONFIG_MAGIC_SYSRQ */ |
7760 | 7760 | ||
7761 | #ifdef CONFIG_IA64 | 7761 | #if defined(CONFIG_IA64) || defined(CONFIG_KGDB_KDB) |
7762 | /* | 7762 | /* |
7763 | * These functions are only useful for the IA64 MCA handling. | 7763 | * These functions are only useful for the IA64 MCA handling, or kdb. |
7764 | * | 7764 | * |
7765 | * They can only be called when the whole system has been | 7765 | * They can only be called when the whole system has been |
7766 | * stopped - every CPU needs to be quiescent, and no scheduling | 7766 | * stopped - every CPU needs to be quiescent, and no scheduling |
@@ -7780,6 +7780,9 @@ struct task_struct *curr_task(int cpu) | |||
7780 | return cpu_curr(cpu); | 7780 | return cpu_curr(cpu); |
7781 | } | 7781 | } |
7782 | 7782 | ||
7783 | #endif /* defined(CONFIG_IA64) || defined(CONFIG_KGDB_KDB) */ | ||
7784 | |||
7785 | #ifdef CONFIG_IA64 | ||
7783 | /** | 7786 | /** |
7784 | * set_curr_task - set the current task for a given cpu. | 7787 | * set_curr_task - set the current task for a given cpu. |
7785 | * @cpu: the processor in question. | 7788 | * @cpu: the processor in question. |