From: Heiko Carstens <heiko.carstens@de•ibm.com>
To: Venkatesh Pallipadi <venki@google•com>,
Peter Zijlstra <a.p.zijlstra@chello•nl>
Cc: linux-next@vger•kernel.org
Subject: [PATCH/resend] sched: add #ifdef around irq time accounting functions
Date: Fri, 25 Feb 2011 14:32:28 +0100 [thread overview]
Message-ID: <20110225133228.GD7469@osiris.boeblingen.de.ibm.com> (raw)
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.
reply other threads:[~2011-02-25 13:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110225133228.GD7469@osiris.boeblingen.de.ibm.com \
--to=heiko.carstens@de$(echo .)ibm.com \
--cc=a.p.zijlstra@chello$(echo .)nl \
--cc=linux-next@vger$(echo .)kernel.org \
--cc=venki@google$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox