aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2011-02-25 08:32:28 -0500
committerIngo Molnar <mingo@elte.hu>2011-02-25 08:39:48 -0500
commit7e9498705e810404ecf29bb2d6fa632b9484c609 (patch)
tree4eacabd8f6b1851d3745a39e0674f23b2c1a2ec3
parent511f67a5997c4967c69a3961e2fc9f04d8d244ac (diff)
sched: Add #ifdef around irq time accounting functions
Get rid of this: kernel/sched.c:3731:13: warning: 'irqtime_account_idle_ticks' defined but not used kernel/sched.c:3732:13: warning: 'irqtime_account_process_tick' defined but not used Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Venkatesh Pallipadi <venki@google.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <20110225133228.GD7469@osiris.boeblingen.de.ibm.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--kernel/sched.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 2effcb71a478..79bca166bed7 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3687,6 +3687,7 @@ void account_system_time(struct task_struct *p, int hardirq_offset,
3687 __account_system_time(p, cputime, cputime_scaled, target_cputime64); 3687 __account_system_time(p, cputime, cputime_scaled, target_cputime64);
3688} 3688}
3689 3689
3690#ifndef CONFIG_VIRT_CPU_ACCOUNTING
3690#ifdef CONFIG_IRQ_TIME_ACCOUNTING 3691#ifdef CONFIG_IRQ_TIME_ACCOUNTING
3691/* 3692/*
3692 * Account a tick to a process and cpustat 3693 * Account a tick to a process and cpustat
@@ -3753,6 +3754,7 @@ static void irqtime_account_idle_ticks(int ticks) {}
3753static void irqtime_account_process_tick(struct task_struct *p, int user_tick, 3754static void irqtime_account_process_tick(struct task_struct *p, int user_tick,
3754 struct rq *rq) {} 3755 struct rq *rq) {}
3755#endif 3756#endif
3757#endif /* !CONFIG_VIRT_CPU_ACCOUNTING */
3756 3758
3757/* 3759/*
3758 * Account for involuntary wait time. 3760 * Account for involuntary wait time.