Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295748
b: refs/heads/master
c: abde710
h: refs/heads/master
v: v3
  • Loading branch information
Marc Zyngier committed Mar 13, 2012
1 parent c00eab3 commit b10b3e6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 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: a2821146e6f69566a384b368b90c22e84aaf7ef3
refs/heads/master: abde710ca8776f851e41c3dfe78ad7dcafa26dc9
6 changes: 1 addition & 5 deletions trunk/arch/arm/include/asm/localtimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,13 @@ void percpu_timer_setup(void);

#include "smp_twd.h"

#define local_timer_stop(c) twd_timer_stop((c))

#else
#endif

/*
* Stop the local timer
*/
void local_timer_stop(struct clock_event_device *);

#endif

/*
* Setup a local timer interrupt for a CPU.
*/
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/include/asm/smp_twd.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ struct clock_event_device;
extern void __iomem *twd_base;

void twd_timer_setup(struct clock_event_device *);
void twd_timer_stop(struct clock_event_device *);

#endif
7 changes: 6 additions & 1 deletion trunk/arch/arm/kernel/smp_twd.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,17 @@ int twd_timer_ack(void)
return 0;
}

void twd_timer_stop(struct clock_event_device *clk)
static void twd_timer_stop(struct clock_event_device *clk)
{
twd_set_mode(CLOCK_EVT_MODE_UNUSED, clk);
disable_percpu_irq(clk->irq);
}

/* Temporary hack to be removed when all TWD users are converted to
the new registration interface */
void local_timer_stop(struct clock_event_device *clk)
__attribute__ ((alias ("twd_timer_stop")));

#ifdef CONFIG_CPU_FREQ

/*
Expand Down

0 comments on commit b10b3e6

Please sign in to comment.