diff options
Diffstat (limited to 'arch/parisc/kernel/time.c')
-rw-r--r-- | arch/parisc/kernel/time.c | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/arch/parisc/kernel/time.c b/arch/parisc/kernel/time.c index 7ff67f8e9f8c..cded25680787 100644 --- a/arch/parisc/kernel/time.c +++ b/arch/parisc/kernel/time.c | |||
@@ -33,10 +33,6 @@ | |||
33 | 33 | ||
34 | #include <linux/timex.h> | 34 | #include <linux/timex.h> |
35 | 35 | ||
36 | u64 jiffies_64 = INITIAL_JIFFIES; | ||
37 | |||
38 | EXPORT_SYMBOL(jiffies_64); | ||
39 | |||
40 | /* xtime and wall_jiffies keep wall-clock time */ | 36 | /* xtime and wall_jiffies keep wall-clock time */ |
41 | extern unsigned long wall_jiffies; | 37 | extern unsigned long wall_jiffies; |
42 | 38 | ||
@@ -89,14 +85,6 @@ irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
89 | } | 85 | } |
90 | } | 86 | } |
91 | 87 | ||
92 | #ifdef CONFIG_CHASSIS_LCD_LED | ||
93 | /* Only schedule the led tasklet on cpu 0, and only if it | ||
94 | * is enabled. | ||
95 | */ | ||
96 | if (cpu == 0 && !atomic_read(&led_tasklet.count)) | ||
97 | tasklet_schedule(&led_tasklet); | ||
98 | #endif | ||
99 | |||
100 | /* check soft power switch status */ | 88 | /* check soft power switch status */ |
101 | if (cpu == 0 && !atomic_read(&power_tasklet.count)) | 89 | if (cpu == 0 && !atomic_read(&power_tasklet.count)) |
102 | tasklet_schedule(&power_tasklet); | 90 | tasklet_schedule(&power_tasklet); |
@@ -104,6 +92,24 @@ irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
104 | return IRQ_HANDLED; | 92 | return IRQ_HANDLED; |
105 | } | 93 | } |
106 | 94 | ||
95 | |||
96 | unsigned long profile_pc(struct pt_regs *regs) | ||
97 | { | ||
98 | unsigned long pc = instruction_pointer(regs); | ||
99 | |||
100 | if (regs->gr[0] & PSW_N) | ||
101 | pc -= 4; | ||
102 | |||
103 | #ifdef CONFIG_SMP | ||
104 | if (in_lock_functions(pc)) | ||
105 | pc = regs->gr[2]; | ||
106 | #endif | ||
107 | |||
108 | return pc; | ||
109 | } | ||
110 | EXPORT_SYMBOL(profile_pc); | ||
111 | |||
112 | |||
107 | /*** converted from ia64 ***/ | 113 | /*** converted from ia64 ***/ |
108 | /* | 114 | /* |
109 | * Return the number of micro-seconds that elapsed since the last | 115 | * Return the number of micro-seconds that elapsed since the last |