public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/mrst: fix apb timer rating when lapic timer is used
@ 2011-02-24  0:07 jacob.jun.pan
  2011-02-24  7:28 ` [tip:x86/urgent] x86/mrst: Fix " tip-bot for Jacob Pan
  0 siblings, 1 reply; 2+ messages in thread
From: jacob.jun.pan @ 2011-02-24  0:07 UTC (permalink / raw)
  To: LKML, H. Peter Anvin, Thomas Gleixner, Ingo Molnar,
	Arjan van de Ven, Alan Cox
  Cc: Jacob Pan

From: Jacob Pan <jacob.jun.pan@linux.intel.com>

Need to adjust the clockevent device rating for the structure that will
be registered with clockevent system instead of the temporary structure.

Without this fix, APB timer rating will be higher than LAPIC timer such
that it can not be released later to be used as the broadcast timer.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
---
 arch/x86/kernel/apb_timer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/apb_timer.c b/arch/x86/kernel/apb_timer.c
index 671d5aa..1293c70 100644
--- a/arch/x86/kernel/apb_timer.c
+++ b/arch/x86/kernel/apb_timer.c
@@ -284,7 +284,7 @@ static int __init apbt_clockevent_register(void)
 	memcpy(&adev->evt, &apbt_clockevent, sizeof(struct clock_event_device));
 
 	if (mrst_timer_options == MRST_TIMER_LAPIC_APBT) {
-		apbt_clockevent.rating = APBT_CLOCKEVENT_RATING - 100;
+		adev->evt.rating = APBT_CLOCKEVENT_RATING - 100;
 		global_clock_event = &adev->evt;
 		printk(KERN_DEBUG "%s clockevent registered as global\n",
 		       global_clock_event->name);
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-24  7:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-24  0:07 [PATCH] x86/mrst: fix apb timer rating when lapic timer is used jacob.jun.pan
2011-02-24  7:28 ` [tip:x86/urgent] x86/mrst: Fix " tip-bot for Jacob Pan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox