diff options
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 d9c0368eeb21..054a6012de99 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -7759,9 +7759,9 @@ void normalize_rt_tasks(void) | |||
7759 | 7759 | ||
7760 | #endif /* CONFIG_MAGIC_SYSRQ */ | 7760 | #endif /* CONFIG_MAGIC_SYSRQ */ |
7761 | 7761 | ||
7762 | #ifdef CONFIG_IA64 | 7762 | #if defined(CONFIG_IA64) || defined(CONFIG_KGDB_KDB) |
7763 | /* | 7763 | /* |
7764 | * These functions are only useful for the IA64 MCA handling. | 7764 | * These functions are only useful for the IA64 MCA handling, or kdb. |
7765 | * | 7765 | * |
7766 | * They can only be called when the whole system has been | 7766 | * They can only be called when the whole system has been |
7767 | * stopped - every CPU needs to be quiescent, and no scheduling | 7767 | * stopped - every CPU needs to be quiescent, and no scheduling |
@@ -7781,6 +7781,9 @@ struct task_struct *curr_task(int cpu) | |||
7781 | return cpu_curr(cpu); | 7781 | return cpu_curr(cpu); |
7782 | } | 7782 | } |
7783 | 7783 | ||
7784 | #endif /* defined(CONFIG_IA64) || defined(CONFIG_KGDB_KDB) */ | ||
7785 | |||
7786 | #ifdef CONFIG_IA64 | ||
7784 | /** | 7787 | /** |
7785 | * set_curr_task - set the current task for a given cpu. | 7788 | * set_curr_task - set the current task for a given cpu. |
7786 | * @cpu: the processor in question. | 7789 | * @cpu: the processor in question. |