mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[PATCH] move rtc_interrupt() prototype to rtc.h
This patch moves the rtc_interrupt() prototype to rtc.h and removes the prototypes from C files. It also renames static rtc_interrupt() functions in arch/arm/mach-integrator/time.c and arch/sh64/kernel/time.c to avoid compile problems. Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Paul Gortmaker <[email protected]> Acked-by: Paul Mundt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
28fd129827
commit
2a10e0b28b
5 changed files with 10 additions and 9 deletions
|
|
@ -417,7 +417,7 @@ static __init unsigned int get_cpu_hz(void)
|
|||
/*
|
||||
** Regardless the toolchain, force the compiler to use the
|
||||
** arbitrary register r3 as a clock tick counter.
|
||||
** NOTE: r3 must be in accordance with rtc_interrupt()
|
||||
** NOTE: r3 must be in accordance with sh64_rtc_interrupt()
|
||||
*/
|
||||
register unsigned long long __rtc_irq_flag __asm__ ("r3");
|
||||
|
||||
|
|
@ -482,7 +482,8 @@ static __init unsigned int get_cpu_hz(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
static irqreturn_t rtc_interrupt(int irq, void *dev_id, struct pt_regs *regs)
|
||||
static irqreturn_t sh64_rtc_interrupt(int irq, void *dev_id,
|
||||
struct pt_regs *regs)
|
||||
{
|
||||
ctrl_outb(0, RCR1); /* Disable Carry Interrupts */
|
||||
regs->regs[3] = 1; /* Using r3 */
|
||||
|
|
@ -491,7 +492,7 @@ static irqreturn_t rtc_interrupt(int irq, void *dev_id, struct pt_regs *regs)
|
|||
}
|
||||
|
||||
static struct irqaction irq0 = { timer_interrupt, SA_INTERRUPT, CPU_MASK_NONE, "timer", NULL, NULL};
|
||||
static struct irqaction irq1 = { rtc_interrupt, SA_INTERRUPT, CPU_MASK_NONE, "rtc", NULL, NULL};
|
||||
static struct irqaction irq1 = { sh64_rtc_interrupt, SA_INTERRUPT, CPU_MASK_NONE, "rtc", NULL, NULL};
|
||||
|
||||
void __init time_init(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue