Skip to contentSkip to conversation

x86_64 minor HPET tweakage

PATCH Applied David Brownell 2 participants 2 messages Sep 12, 2008 – Sep 14, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86_64 minor HPET tweakage

From: David Brownell <[email protected]>

Minor HPET tweakage on x86_64: Label the /proc/interrupts entry as "hpet" or "pit", matching the device and its clockevent name in /proc/timer_list.

---
 arch/x86/kernel/time_64.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/x86/kernel/time_64.c +4 -2
@@ -103,13 +103,15 @@ static struct irqaction irq0 = {
 	.handler	= timer_event_interrupt,
 	.flags		= IRQF_DISABLED | IRQF_IRQPOLL | IRQF_NOBALANCING,
 	.mask		= CPU_MASK_NONE,
-	.name		= "timer"
+	.name		= "hpet"
 };
 
 void __init hpet_time_init(void)
 {
-	if (!hpet_enable())
+	if (!hpet_enable()) {
+		irq0.name = "pit";
 		setup_pit_timer();
+	}
 
 	setup_irq(0, &irq0);
 }
Applied
#1 lore raw
Quoted 7 lines · David Brownell

From: David Brownell <[email protected]>

Minor HPET tweakage on x86_64: Label the /proc/interrupts entry as "hpet" or "pit", matching the device and its clockevent name in /proc/timer_list.

applied to tip/timers/clockevents - thanks David!

Ingo