parisc: Switch to clockevent based timers
Helge Deller
maintainerRFC PATCH 1/1 parisc: Switch to clockevent based timers
Switch from a periodic timer-based configuration to a clockevent based configuration. With this change we now have more fine grained hrtimers and it's possible to switch to a CONFIG_NO_HZ_IDLE system.
Signed-off-by Helge Deller <[email protected]>
arch/parisc/include/asm/processor.h +0 -1
@@ -82,7 +82,6 @@ struct system_cpuinfo_parisc {/* Per CPU data structure - ie varies per CPU. */ struct cpuinfo_parisc { -unsigned long it_value;/* Interval Timer at last timer Intr */ unsigned long irq_count;/* number of IRQ's since boot */ unsigned long cpuid;/* aka slot_number or set to NO_PROC_ID */ unsigned long hpa;/* Host Physical address */
arch/parisc/kernel/irq.c +2 -5
@@ -562,17 +562,14 @@ void do_cpu_irq_mask(struct pt_regs *regs)static void claim_cpu_irqs (void ) { -unsigned long flags =IRQF_TIMER |IRQF_PERCPU |IRQF_IRQPOLL ;int i;for (i =CPU_IRQ_BASE ; i <=CPU_IRQ_MAX ; i++) {irq_set_chip_and_handler (i, &cpu_interrupt_type, handle_percpu_irq); } - -irq_set_handler (TIMER_IRQ , handle_percpu_irq); -if (request_irq (TIMER_IRQ , timer_interrupt, flags,"timer" ,NULL )) -pr_err ("Failed to register timer interrupt\n" ); +irq_set_percpu_devid (TIMER_IRQ ); +irq_set_handler (TIMER_IRQ , handle_percpu_devid_irq);#ifdef CONFIG_SMP irq_set_handler (IPI_IRQ , handle_percpu_irq);if (request_irq (IPI_IRQ , ipi_interrupt,IRQF_PERCPU ,"IPI" ,NULL ))
arch/parisc/kernel/time.c +86 -78
198 lines not on this page · raw message