diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-11-07 04:27:16 -0500 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2015-06-22 04:36:56 -0400 |
commit | aa93e8ef98471277cfedacd68604bb28b5a35aa7 (patch) | |
tree | 40b78e1eb7d72320e33638bb6850d90fc57c02c2 /arch/arc/kernel/setup.c | |
parent | b3210d141f5ec32d3b29d0cf4f33d922a739602f (diff) |
ARCv2: clocksource: Introduce 64bit local RTC counter
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel/setup.c')
-rw-r--r-- | arch/arc/kernel/setup.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index ca71cef4bafd..a3d186211ed3 100644 --- a/arch/arc/kernel/setup.c +++ b/arch/arc/kernel/setup.c | |||
@@ -200,9 +200,11 @@ static char *arc_cpu_mumbojumbo(int cpu_id, char *buf, int len) | |||
200 | (unsigned int)(arc_get_core_freq() / 1000000), | 200 | (unsigned int)(arc_get_core_freq() / 1000000), |
201 | (unsigned int)(arc_get_core_freq() / 10000) % 100); | 201 | (unsigned int)(arc_get_core_freq() / 10000) % 100); |
202 | 202 | ||
203 | n += scnprintf(buf + n, len - n, "Timers\t\t: %s%s\nISA Extn\t: ", | 203 | n += scnprintf(buf + n, len - n, "Timers\t\t: %s%s%s%s\nISA Extn\t: ", |
204 | IS_AVAIL1(cpu->timers.t0, "Timer0 "), | 204 | IS_AVAIL1(cpu->timers.t0, "Timer0 "), |
205 | IS_AVAIL1(cpu->timers.t1, "Timer1 ")); | 205 | IS_AVAIL1(cpu->timers.t1, "Timer1 "), |
206 | IS_AVAIL2(cpu->timers.rtc, "64-bit RTC ", | ||
207 | CONFIG_ARC_HAS_RTC)); | ||
206 | 208 | ||
207 | n += i = scnprintf(buf + n, len - n, "%s%s%s%s%s", | 209 | n += i = scnprintf(buf + n, len - n, "%s%s%s%s%s", |
208 | IS_AVAIL2(atomic, "atomic ", CONFIG_ARC_HAS_LLSC), | 210 | IS_AVAIL2(atomic, "atomic ", CONFIG_ARC_HAS_LLSC), |
@@ -290,6 +292,9 @@ static void arc_chk_core_config(void) | |||
290 | if (!cpu->timers.t1) | 292 | if (!cpu->timers.t1) |
291 | panic("Timer1 is not present!\n"); | 293 | panic("Timer1 is not present!\n"); |
292 | 294 | ||
295 | if (IS_ENABLED(CONFIG_ARC_HAS_RTC) && !cpu->timers.rtc) | ||
296 | panic("RTC is not present\n"); | ||
297 | |||
293 | #ifdef CONFIG_ARC_HAS_DCCM | 298 | #ifdef CONFIG_ARC_HAS_DCCM |
294 | /* | 299 | /* |
295 | * DCCM can be arbit placed in hardware. | 300 | * DCCM can be arbit placed in hardware. |