Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31741
b: refs/heads/master
c: d061daa
h: refs/heads/master
i:
  31739: 10a0395
v: v3
  • Loading branch information
Thomas Gleixner authored and Linus Torvalds committed Jul 3, 2006
1 parent c4662bd commit 495a785
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f82bc1762e0e74b7e0040a4d83be06d32c37fc2e
refs/heads/master: d061daa0e3abdddc28e21a37c8ac4536dedbf239
11 changes: 11 additions & 0 deletions trunk/include/asm-arm/hw_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,15 @@

#include <asm/mach/irq.h>

#if defined(CONFIG_NO_IDLE_HZ)
# include <asm/dyntick.h>
# define handle_dynamic_tick(action) \
if (!(action->flags & SA_TIMER) && system_timer->dyn_tick) { \
write_seqlock(&xtime_lock); \
if (system_timer->dyn_tick->state & DYN_TICK_ENABLED) \
system_timer->dyn_tick->handler(irq, 0, regs); \
write_sequnlock(&xtime_lock); \
}
#endif

#endif
1 change: 1 addition & 0 deletions trunk/include/asm-arm/mach/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ extern void timer_tick(struct pt_regs *);
/*
* Kernel time keeping support.
*/
struct timespec;
extern int (*set_rtc)(void);
extern void save_time_delta(struct timespec *delta, struct timespec *rtc);
extern void restore_time_delta(struct timespec *delta, struct timespec *rtc);
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/linux/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ extern int setup_irq(unsigned int irq, struct irqaction *new);

#ifdef CONFIG_GENERIC_HARDIRQS

#ifndef handle_dynamic_tick
# define handle_dynamic_tick(a) do { } while (0)
#endif

#ifdef CONFIG_SMP
static inline void set_native_irq_info(int irq, cpumask_t mask)
{
Expand Down
13 changes: 1 addition & 12 deletions trunk/kernel/irq/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
#include <linux/interrupt.h>
#include <linux/kernel_stat.h>

#if defined(CONFIG_NO_IDLE_HZ) && defined(CONFIG_ARM)
#include <asm/dyntick.h>
#endif

#include "internals.h"

/**
Expand Down Expand Up @@ -133,14 +129,7 @@ irqreturn_t handle_IRQ_event(unsigned int irq, struct pt_regs *regs,
irqreturn_t ret, retval = IRQ_NONE;
unsigned int status = 0;

#if defined(CONFIG_NO_IDLE_HZ) && defined(CONFIG_ARM)
if (!(action->flags & SA_TIMER) && system_timer->dyn_tick != NULL) {
write_seqlock(&xtime_lock);
if (system_timer->dyn_tick->state & DYN_TICK_ENABLED)
system_timer->dyn_tick->handler(irq, 0, regs);
write_sequnlock(&xtime_lock);
}
#endif
handle_dynamic_tick(action);

if (!(action->flags & IRQF_DISABLED))
local_irq_enable();
Expand Down

0 comments on commit 495a785

Please sign in to comment.