Skip to content

Commit 7e94987

Browse files
heicarstIngo Molnar
authored and
Ingo Molnar
committed
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>
1 parent 511f67a commit 7e94987

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/sched.c

+2
Original file line numberDiff line numberDiff line change
@@ -3687,6 +3687,7 @@ void account_system_time(struct task_struct *p, int hardirq_offset,
36873687
__account_system_time(p, cputime, cputime_scaled, target_cputime64);
36883688
}
36893689

3690+
#ifndef CONFIG_VIRT_CPU_ACCOUNTING
36903691
#ifdef CONFIG_IRQ_TIME_ACCOUNTING
36913692
/*
36923693
* Account a tick to a process and cpustat
@@ -3753,6 +3754,7 @@ static void irqtime_account_idle_ticks(int ticks) {}
37533754
static void irqtime_account_process_tick(struct task_struct *p, int user_tick,
37543755
struct rq *rq) {}
37553756
#endif
3757+
#endif /* !CONFIG_VIRT_CPU_ACCOUNTING */
37563758

37573759
/*
37583760
* Account for involuntary wait time.

0 commit comments

Comments
 (0)