public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH/resend] sched: add #ifdef around irq time accounting functions
@ 2011-02-25 13:32 Heiko Carstens
  0 siblings, 0 replies; only message in thread
From: Heiko Carstens @ 2011-02-25 13:32 UTC (permalink / raw)
  To: Venkatesh Pallipadi, Peter Zijlstra; +Cc: linux-next

From: Heiko Carstens <heiko.carstens@de•ibm.com>

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

Cc: Venkatesh Pallipadi <venki@google•com>
Signed-off-by: Heiko Carstens <heiko.carstens@de•ibm.com>
---

Resending, because I screwed up Peter's email address...
Patch is against linux-next.

 kernel/sched.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3666,6 +3666,7 @@ void account_system_time(struct task_str
 	__account_system_time(p, cputime, cputime_scaled, target_cputime64);
 }
 
+#ifndef CONFIG_VIRT_CPU_ACCOUNTING
 #ifdef CONFIG_IRQ_TIME_ACCOUNTING
 /*
  * Account a tick to a process and cpustat
@@ -3732,6 +3733,7 @@ static void irqtime_account_idle_ticks(i
 static void irqtime_account_process_tick(struct task_struct *p, int user_tick,
 						struct rq *rq) {}
 #endif
+#endif /* !CONFIG_VIRT_CPU_ACCOUNTING */
 
 /*
  * Account for involuntary wait time.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-25 13:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-25 13:32 [PATCH/resend] sched: add #ifdef around irq time accounting functions Heiko Carstens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox