diff options
author | Graf Yang <graf.yang@analog.com> | 2010-01-27 12:16:32 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-03-09 06:30:50 +0100 |
commit | 6c2b7072a7035837998da38809f98e4182e4c41c (patch) | |
tree | 351bc14390bac981913ff8e5078f14cf29970848 /arch/blackfin/kernel | |
parent | Blackfin: rename AD1938 to AD193X in board files (diff) | |
download | linux-6c2b7072a7035837998da38809f98e4182e4c41c.tar.xz linux-6c2b7072a7035837998da38809f98e4182e4c41c.zip |
Blackfin: add support for cpufreq on SMP systems
Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/kernel')
-rw-r--r-- | arch/blackfin/kernel/time-ts.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/time-ts.c b/arch/blackfin/kernel/time-ts.c index 41a907596c70..cb7a01d4f009 100644 --- a/arch/blackfin/kernel/time-ts.c +++ b/arch/blackfin/kernel/time-ts.c @@ -51,7 +51,11 @@ static notrace cycle_t bfin_read_cycles(struct clocksource *cs) { +#ifdef CONFIG_CPU_FREQ return __bfin_cycles_off + (get_cycles() << __bfin_cycles_mod); +#else + return get_cycles(); +#endif } static struct clocksource bfin_cs_cycles = { |