[PATCH 2/8] Consolidate account_system_vtime extern declaration -v4

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Venkatesh Pallipadi
Date: Monday, October 4, 2010 - 5:03 pm

Just a minor cleanup patch that makes things easier to the following patches.
No functionality change in this patch.

Signed-off-by: Venkatesh Pallipadi <venki@google.com>
---
 arch/ia64/include/asm/system.h    |    4 ----
 arch/powerpc/include/asm/system.h |    4 ----
 arch/s390/include/asm/system.h    |    1 -
 include/linux/hardirq.h           |    2 ++
 4 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/arch/ia64/include/asm/system.h b/arch/ia64/include/asm/system.h
index 9f342a5..dd028f2 100644
--- a/arch/ia64/include/asm/system.h
+++ b/arch/ia64/include/asm/system.h
@@ -272,10 +272,6 @@ void cpu_idle_wait(void);
 
 void default_idle(void);
 
-#ifdef CONFIG_VIRT_CPU_ACCOUNTING
-extern void account_system_vtime(struct task_struct *);
-#endif
-
 #endif /* __KERNEL__ */
 
 #endif /* __ASSEMBLY__ */
diff --git a/arch/powerpc/include/asm/system.h b/arch/powerpc/include/asm/system.h
index 6c294ac..9c3d160 100644
--- a/arch/powerpc/include/asm/system.h
+++ b/arch/powerpc/include/asm/system.h
@@ -542,10 +542,6 @@ extern void reloc_got2(unsigned long);
 
 #define PTRRELOC(x)	((typeof(x)) add_reloc_offset((unsigned long)(x)))
 
-#ifdef CONFIG_VIRT_CPU_ACCOUNTING
-extern void account_system_vtime(struct task_struct *);
-#endif
-
 extern struct dentry *powerpc_debugfs_root;
 
 #endif /* __KERNEL__ */
diff --git a/arch/s390/include/asm/system.h b/arch/s390/include/asm/system.h
index cef6621..38ddd8a 100644
--- a/arch/s390/include/asm/system.h
+++ b/arch/s390/include/asm/system.h
@@ -97,7 +97,6 @@ static inline void restore_access_regs(unsigned int *acrs)
 
 extern void account_vtime(struct task_struct *, struct task_struct *);
 extern void account_tick_vtime(struct task_struct *);
-extern void account_system_vtime(struct task_struct *);
 
 #ifdef CONFIG_PFAULT
 extern void pfault_irq_init(void);
diff --git a/include/linux/hardirq.h b/include/linux/hardirq.h
index e37a77c..41367c5 100644
--- a/include/linux/hardirq.h
+++ b/include/linux/hardirq.h
@@ -141,6 +141,8 @@ struct task_struct;
 static inline void account_system_vtime(struct task_struct *tsk)
 {
 }
+#else
+extern void account_system_vtime(struct task_struct *tsk);
 #endif
 
 #if defined(CONFIG_NO_HZ)
-- 
1.7.1

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Proper kernel irq time accounting -v4, Venkatesh Pallipadi, (Mon Oct 4, 5:03 pm)
[PATCH 1/8] si time accounting accounts bh_disable'd time ..., Venkatesh Pallipadi, (Mon Oct 4, 5:03 pm)
[PATCH 2/8] Consolidate account_system_vtime extern declar ..., Venkatesh Pallipadi, (Mon Oct 4, 5:03 pm)
[PATCH 3/8] Add a PF flag for ksoftirqd identification, Venkatesh Pallipadi, (Mon Oct 4, 5:03 pm)
[PATCH 4/8] Add IRQ_TIME_ACCOUNTING, finer accounting of i ..., Venkatesh Pallipadi, (Mon Oct 4, 5:03 pm)
[PATCH 5/8] x86: Add IRQ_TIME_ACCOUNTING in x86 -v4, Venkatesh Pallipadi, (Mon Oct 4, 5:03 pm)
[PATCH 6/8] sched: Do not account irq time to current task -v4, Venkatesh Pallipadi, (Mon Oct 4, 5:03 pm)
[PATCH 7/8] sched: Remove irq time from available CPU powe ..., Venkatesh Pallipadi, (Mon Oct 4, 5:03 pm)
[PATCH 8/8] Call tick_check_idle before __irq_enter, Venkatesh Pallipadi, (Mon Oct 4, 5:03 pm)
Re: Proper kernel irq time accounting -v4, Venkatesh Pallipadi, (Tue Oct 12, 12:00 pm)
Re: Proper kernel irq time accounting -v4, Shaun Ruffell, (Thu Oct 14, 9:12 am)
Re: Proper kernel irq time accounting -v4, Venkatesh Pallipadi, (Thu Oct 14, 11:19 am)
Re: Proper kernel irq time accounting -v4, Shaun Ruffell, (Thu Oct 14, 1:00 pm)
Re: [PATCH 3/8] Add a PF flag for ksoftirqd identification, Peter Zijlstra, (Fri Oct 15, 7:26 am)
Re: [PATCH 5/8] x86: Add IRQ_TIME_ACCOUNTING in x86 -v4, Peter Zijlstra, (Fri Oct 15, 7:38 am)
Re: Proper kernel irq time accounting -v4, Peter Zijlstra, (Fri Oct 15, 8:11 am)
Re: Proper kernel irq time accounting -v4, Peter Zijlstra, (Fri Oct 15, 8:27 am)
Re: Proper kernel irq time accounting -v4, Venkatesh Pallipadi, (Fri Oct 15, 10:13 am)
Re: Proper kernel irq time accounting -v4, Peter Zijlstra, (Fri Oct 15, 10:20 am)
Re: Proper kernel irq time accounting -v4, Yong Zhang, (Sun Oct 17, 2:11 am)
Re: [PATCH 8/8] Call tick_check_idle before __irq_enter, Peter Zijlstra, (Mon Oct 18, 2:15 am)
[tip:sched/core] sched: Fix softirq time accounting, tip-bot for Venkates ..., (Mon Oct 18, 12:24 pm)
[tip:sched/core] sched: Consolidate account_system_vtime e ..., tip-bot for Venkates ..., (Mon Oct 18, 12:24 pm)
[tip:sched/core] sched: Add a PF flag for ksoftirqd identi ..., tip-bot for Venkates ..., (Mon Oct 18, 12:25 pm)
[tip:sched/core] sched: Add IRQ_TIME_ACCOUNTING, finer acc ..., tip-bot for Venkates ..., (Mon Oct 18, 12:25 pm)
[tip:sched/core] x86: Add IRQ_TIME_ACCOUNTING, tip-bot for Venkates ..., (Mon Oct 18, 12:26 pm)
[tip:sched/core] sched: Do not account irq time to current ..., tip-bot for Venkates ..., (Mon Oct 18, 12:26 pm)
[tip:sched/core] sched: Remove irq time from available CPU ..., tip-bot for Venkates ..., (Mon Oct 18, 12:26 pm)
[tip:sched/core] sched: Call tick_check_idle before __irq_ ..., tip-bot for Venkates ..., (Mon Oct 18, 12:27 pm)
[tip:sched/core] sched: Export account_system_vtime(), tip-bot for Ingo Molnar, (Mon Oct 18, 12:27 pm)
Re: [tip:sched/core] sched: Do not account irq time to cur ..., Venkatesh Pallipadi, (Wed Dec 1, 11:55 am)