diff options
Diffstat (limited to 'arch/arm/kernel/time.c')
| -rw-r--r-- | arch/arm/kernel/time.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c index 6ff5e3ff6cb5..3c8cdcfe8d4a 100644 --- a/arch/arm/kernel/time.c +++ b/arch/arm/kernel/time.c | |||
| @@ -29,6 +29,8 @@ | |||
| 29 | #include <linux/timer.h> | 29 | #include <linux/timer.h> |
| 30 | #include <linux/irq.h> | 30 | #include <linux/irq.h> |
| 31 | 31 | ||
| 32 | #include <linux/mc146818rtc.h> | ||
| 33 | |||
| 32 | #include <asm/leds.h> | 34 | #include <asm/leds.h> |
| 33 | #include <asm/thread_info.h> | 35 | #include <asm/thread_info.h> |
| 34 | #include <asm/mach/time.h> | 36 | #include <asm/mach/time.h> |
| @@ -85,6 +87,17 @@ unsigned long long __attribute__((weak)) sched_clock(void) | |||
| 85 | return (unsigned long long)jiffies * (1000000000 / HZ); | 87 | return (unsigned long long)jiffies * (1000000000 / HZ); |
| 86 | } | 88 | } |
| 87 | 89 | ||
| 90 | /* | ||
| 91 | * An implementation of printk_clock() independent from | ||
| 92 | * sched_clock(). This avoids non-bootable kernels when | ||
| 93 | * printk_clock is enabled. | ||
| 94 | */ | ||
| 95 | unsigned long long printk_clock(void) | ||
| 96 | { | ||
| 97 | return (unsigned long long)(jiffies - INITIAL_JIFFIES) * | ||
| 98 | (1000000000 / HZ); | ||
| 99 | } | ||
| 100 | |||
| 88 | static unsigned long next_rtc_update; | 101 | static unsigned long next_rtc_update; |
| 89 | 102 | ||
| 90 | /* | 103 | /* |
