lkml.org 
[lkml]   [2008]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[patch 2.6.27-rc6] x86_64 minor HPET tweakage
Date
From: David Brownell <dbrownell@users.sourceforge.net>

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.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
---
arch/x86/kernel/time_64.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

--- a/arch/x86/kernel/time_64.c
+++ b/arch/x86/kernel/time_64.c
@@ -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);
}

\
 
 \ /
  Last update: 2008-09-12 19:45    [W:0.078 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site