summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/time_32.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2012-05-14 17:30:35 +0200
committerDavid S. Miller <davem@davemloft.net>2012-05-14 23:05:08 +0200
commit08c9388f5816ac9285dce7d07c8867ae1c1e4bcb (patch)
treeb2de0ea20a6187a9375b6fa1f9c5a6193d95786c /arch/sparc/kernel/time_32.c
parentsparc32: move smp ipi to method ops (diff)
downloadlinux-08c9388f5816ac9285dce7d07c8867ae1c1e4bcb.tar.xz
linux-08c9388f5816ac9285dce7d07c8867ae1c1e4bcb.zip
sparc32: remove remaining users of btfixup
Use sparc_config to hold the last two function pointers. There was no point generating dedicated _ops structures only for these. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--arch/sparc/kernel/time_32.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/sparc/kernel/time_32.c b/arch/sparc/kernel/time_32.c
index 1e25a7ab1ea5..459cf66c143c 100644
--- a/arch/sparc/kernel/time_32.c
+++ b/arch/sparc/kernel/time_32.c
@@ -95,10 +95,10 @@ irqreturn_t notrace timer_interrupt(int dummy, void *dev_id)
if (timer_cs_enabled) {
write_seqlock(&timer_cs_lock);
timer_cs_internal_counter++;
- clear_clock_irq();
+ sparc_config.clear_clock_irq();
write_sequnlock(&timer_cs_lock);
} else {
- clear_clock_irq();
+ sparc_config.clear_clock_irq();
}
if (timer_ce_enabled)
@@ -200,12 +200,13 @@ static void percpu_ce_setup(enum clock_event_mode mode,
switch (mode) {
case CLOCK_EVT_MODE_PERIODIC:
- load_profile_irq(cpu, SBUS_CLOCK_RATE / HZ);
+ sparc_config.load_profile_irq(cpu,
+ SBUS_CLOCK_RATE / HZ);
break;
case CLOCK_EVT_MODE_ONESHOT:
case CLOCK_EVT_MODE_SHUTDOWN:
case CLOCK_EVT_MODE_UNUSED:
- load_profile_irq(cpu, 0);
+ sparc_config.load_profile_irq(cpu, 0);
break;
default:
break;
@@ -218,7 +219,7 @@ static int percpu_ce_set_next_event(unsigned long delta,
int cpu = __first_cpu(evt->cpumask);
unsigned int next = (unsigned int)delta;
- load_profile_irq(cpu, next);
+ sparc_config.load_profile_irq(cpu, next);
return 0;
}