[PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-27 Thread Dmitry Antipov
Generalize CONFIG_IRQ_TIME_ACCOUNTING between X86 and ARM, move "noirqtime=" option to common debugging code. For a bit of backward compatibility, X86-specific option "tsc=noirqtime" is preserved, but issues a warning. Suggested-by: Yong Zhang Suggested-by: Russell King Suggested-by: Ingo Molna

Re: [PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-27 Thread Dmitry Antipov
On 02/27/2012 02:12 PM, Peter Zijlstra wrote: -extern void enable_sched_clock_irqtime(void); -extern void disable_sched_clock_irqtime(void); +extern int sched_clock_irqtime; +static inline void enable_sched_clock_irqtime(void) +{ + if (sched_clock_irqtime == -1) + sched_clock

Re: [PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-27 Thread Peter Zijlstra
On Mon, 2012-02-20 at 10:04 +0400, Dmitry Antipov wrote: > Generalize CONFIG_IRQ_TIME_ACCOUNTING between X86 and > ARM, move "noirqtime=" option to common debugging code. > For a bit of backward compatibility, X86-specific option > "tsc=noirqtime" is preserved, but issues a warning. > > Suggested

[PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-19 Thread Dmitry Antipov
Generalize CONFIG_IRQ_TIME_ACCOUNTING between X86 and ARM, move "noirqtime=" option to common debugging code. For a bit of backward compatibility, X86-specific option "tsc=noirqtime" is preserved, but issues a warning. Suggested-by: Yong Zhang Suggested-by: Russell King Suggested-by: Ingo Molna

Re: [PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-18 Thread Ingo Molnar
* Dmitry Antipov wrote: > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -757,18 +757,20 @@ static DEFINE_PER_CPU(u64, cpu_hardirq_time); > static DEFINE_PER_CPU(u64, cpu_softirq_time); > > static DEFINE_PER_CPU(u64, irq_start_time); > -static int sched_clock_irqtime; > > -void

Re: [PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-10 Thread Venki Pallipadi
> +       noirqtime       [X86,ARM] Used to run time disable > IRQ_TIME_ACCOUNTING, > +                       should give a negligible performance improvement. Can you reword the above "negligible performance improvement" above to something > +       noirqtime       [X86,ARM] Run time disables I

[PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-10 Thread Dmitry Antipov
Generalize CONFIG_IRQ_TIME_ACCOUNTING between X86 and ARM, move "noirqtime=" option to common debugging code. For a bit of backward compatibility, X86-specific option "tsc=noirqtime" is preserved, but issues a warning. Suggested-by: Yong Zhang Suggested-by: Russell King Acked-by: Venkatesh Pall

[PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-09 Thread Dmitry Antipov
Generalize CONFIG_IRQ_TIME_ACCOUNTING between X86 and ARM, move "noirqtime=" option to common debugging code. For a bit of backward compatibility, X86-specific option "tsc=noirqtime" is preserved, but issues a warning. Suggested-by: Yong Zhang Suggested-by: Russell King Suggested-by: Venki Pall

Re: [PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-09 Thread Yong Zhang
Cc'ing PeterZ. On Wed, Feb 08, 2012 at 04:48:34AM -0800, Dmitry Antipov wrote: > Generalize CONFIG_IRQ_TIME_ACCOUNTING between X86 and > ARM, move "noirqtime=" option to common debugging code. > For a bit of backward compatibility, "tsc=noirqtime" > is preserved, but issues a warning. > > Sugges

Re: [PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-09 Thread Yong Zhang
On Wed, Feb 08, 2012 at 01:18:33PM +, Russell King - ARM Linux wrote: > On Wed, Feb 08, 2012 at 04:48:34AM -0800, Dmitry Antipov wrote: > > Generalize CONFIG_IRQ_TIME_ACCOUNTING between X86 and > > ARM, move "noirqtime=" option to common debugging code. > > For a bit of backward compatibility,

[PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-08 Thread Dmitry Antipov
Generalize CONFIG_IRQ_TIME_ACCOUNTING between X86 and ARM, move "noirqtime=" option to common debugging code. For a bit of backward compatibility, X86-specific option "tsc=noirqtime" is preserved, but issues a warning. Suggested-by: Russell King Suggested-by: Venki Pallipadi Signed-off-by: Dmit

Re: [PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-08 Thread Venki Pallipadi
On Wed, Feb 8, 2012 at 8:08 AM, Dmitry Antipov wrote: > Generalize CONFIG_IRQ_TIME_ACCOUNTING  between X86 and > ARM, move "noirqtime=" option to common debugging code. > For a bit of backward compatibility, X86-specific option > "tsc=noirqtime" is preserved, but issues a warning. > > Suggested-by

[PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-08 Thread Dmitry Antipov
Generalize CONFIG_IRQ_TIME_ACCOUNTING between X86 and ARM, move "noirqtime=" option to common debugging code. For a bit of backward compatibility, X86-specific option "tsc=noirqtime" is preserved, but issues a warning. Suggested-by: Russell King Suggested-by: Venki Pallipadi Signed-off-by: Dmit

Re: [PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-08 Thread Russell King - ARM Linux
On Wed, Feb 08, 2012 at 07:15:26AM -0800, Dmitry Antipov wrote: > On 02/08/2012 05:18 AM, Russell King - ARM Linux wrote: >> Why are you placing this here? sched_clock is available from the point >> that it's registered, which should be before the first sched_clock() >> call. > > This is just beca

Re: [PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-08 Thread Dmitry Antipov
On 02/08/2012 05:18 AM, Russell King - ARM Linux wrote: diff --git a/arch/arm/kernel/sched_clock.c b/arch/arm/kernel/sched_clock.c index 5416c7c..56d2a9d 100644 --- a/arch/arm/kernel/sched_clock.c +++ b/arch/arm/kernel/sched_clock.c @@ -162,5 +162,8 @@ void __init sched_clock_postinit(void)

Re: [PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-08 Thread Russell King - ARM Linux
On Wed, Feb 08, 2012 at 04:48:34AM -0800, Dmitry Antipov wrote: > Generalize CONFIG_IRQ_TIME_ACCOUNTING between X86 and > ARM, move "noirqtime=" option to common debugging code. > For a bit of backward compatibility, "tsc=noirqtime" > is preserved, but issues a warning. > > Suggested-by: Venki Pa

[PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-08 Thread Dmitry Antipov
Generalize CONFIG_IRQ_TIME_ACCOUNTING between X86 and ARM, move "noirqtime=" option to common debugging code. For a bit of backward compatibility, "tsc=noirqtime" is preserved, but issues a warning. Suggested-by: Venki Pallipadi Signed-off-by: Dmitry Antipov --- arch/arm/kernel/sched_clock.c |

Re: [PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-07 Thread Venki Pallipadi
On Tue, Feb 7, 2012 at 10:06 AM, Dmitry Antipov wrote: > Generalize CONFIG_IRQ_TIME_ACCOUNTING  between X86 and > ARM, move "noirqtime=" option to common debugging code. > > Signed-off-by: Dmitry Antipov > --- >  arch/arm/kernel/sched_clock.c |    3 +++ >  arch/x86/Kconfig              |   11 ---

[PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM

2012-02-07 Thread Dmitry Antipov
Generalize CONFIG_IRQ_TIME_ACCOUNTING between X86 and ARM, move "noirqtime=" option to common debugging code. Signed-off-by: Dmitry Antipov --- arch/arm/kernel/sched_clock.c |3 +++ arch/x86/Kconfig | 11 --- arch/x86/kernel/tsc.c |4 include/linux/sc