msm: timer: compensate for timer shift in msm_read_timer_count
Subsystems (3)
PATCH v2 1/1 msm: timer: compensate for timer shift in msm_read_timer_count
Some msm targets have timers whose lower bits are unreliable. So, we present our timers as lower frequency than they actually are, and ignore the bottom 5 bits on such targets. This compensation was erroneously removed from the msm_read_timer_count function, so restore it.
This was broken by 94790ec25 "msm: timer: SMP timer support for msm".
--- arch/arm/mach-msm/timer.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
arch/arm/mach-msm/timer.c +5 -1
@@ -100,7 +100,11 @@ static cycle_t msm_read_timer_count(struct clocksource *cs) { struct msm_clock *clk = container_of(cs, struct msm_clock, clocksource); -return readl (clk->global_counter); +/* +* Shift timer count down by a constant due to unreliable lower bits +* on some targets. +*/ +return readl (clk->global_counter) >> clk->shift; }static struct msm_clock *clockevent_to_clock (struct clock_event_device *evt)
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Quoted 5 lines · Jeff Ohlstein
Some msm targets have timers whose lower bits are unreliable. So, we present our timers as lower frequency than they actually are, and ignore the bottom 5 bits on such targets. This compensation was erroneously removed from the
msm_read_timer_countfunction, so restore it.
Quoted 7 lines
This was broken by
94790ec25"msm: timer: SMP timer support for msm".Signed-off-by Jeff Ohlstein <[email protected]>--- arch/arm/mach-msm/timer.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
<formletter>
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly.
</formletter>
Quoted 14 lines · Greg KH
Quoted 5 lines · Jeff Ohlstein
Some msm targets have timers whose lower bits are unreliable. So, we present our timers as lower frequency than they actually are, and ignore the bottom 5 bits on such targets. This compensation was erroneously removed from the
msm_read_timer_countfunction, so restore it.Quoted 7 lines
This was broken by
94790ec25"msm: timer: SMP timer support for msm".Signed-off-by Jeff Ohlstein <[email protected]>--- arch/arm/mach-msm/timer.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
Quoted 7 lines
<formletter>
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read
Documentation/stable_kernel_rules.txtfor how to do this properly.</formletter>
I don't think this patch was intended for stable in the first place. Jeff, this is a fix for 3.0-rcx, right?
David
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Quoted 18 lines · David Brown
Quoted 16 lines · Greg KH
Quoted 5 lines · Jeff Ohlstein
Some msm targets have timers whose lower bits are unreliable. So, we present our timers as lower frequency than they actually are, and ignore the bottom 5 bits on such targets. This compensation was erroneously removed from the
msm_read_timer_countfunction, so restore it.Quoted 7 lines
This was broken by
94790ec25"msm: timer: SMP timer support for msm".Signed-off-by Jeff Ohlstein <[email protected]>--- arch/arm/mach-msm/timer.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)<formletter>
Quoted 8 lines
Quoted 5 lines
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read
Documentation/stable_kernel_rules.txtfor how to do this properly.</formletter>
I don't think this patch was intended for stable in the first place. Jeff, this is a fix for 3.0-rcx, right?
Then why was it sent to stable at kernel.org?
confused,
greg k-h
Quoted 10 lines · Greg KH
Quoted 2 lines · David Brown
I don't think this patch was intended for stable in the first place. Jeff, this is a fix for 3.0-rcx, right?
Then why was it sent to stable at kernel.org?
confused,
greg k-h
Sorry, this was indeed intended for stable. I will include the Cc: tag in future patches stable. However, since this was already picked up in Linus's tree, how should I proceed to get it into stable?
Jeff
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Quoted 7 lines · Jeff Ohlstein
Quoted 6 lines · Greg KH
Quoted 2 lines · David Brown
I don't think this patch was intended for stable in the first place. Jeff, this is a fix for 3.0-rcx, right?
Then why was it sent to stable at kernel.org?
Quoted 8 lines
Quoted 4 lines
confused,
greg k-h
Sorry, this was indeed intended for stable. I will include the Cc: tag in future patches stable. However, since this was already picked up in Linus's tree, how should I proceed to get it into stable?
Take a look at Documentation/stable_kernel_rules.txt for how to do this (hint, send the git commit id to stable at kernel.org and let us know what kernels you want it applied to.)
greg k-h