diff options
author | Manuel Lauss <manuel.lauss@gmail.com> | 2014-07-23 10:36:57 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-07-30 08:12:00 -0400 |
commit | 72e1e2a30f67fc19a958be6c1818e7e6cb1573fe (patch) | |
tree | 517844fb7a69d47035fb979ddc106866f82d86ad /arch/mips/alchemy/common/setup.c | |
parent | b6507596dfd6e7540c0939bc361cce8059432b71 (diff) |
MIPS: Alchemy: remove old clock support
With the clock framework in place, remove unused functions and bits,
and drop the CLK_IGNORE_UNUSED flag, which is now unneeded.
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Cc: Linux-MIPS <linux-mips@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/7473/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/alchemy/common/setup.c')
-rw-r--r-- | arch/mips/alchemy/common/setup.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/mips/alchemy/common/setup.c b/arch/mips/alchemy/common/setup.c index 8267e3c97721..ea8f41869e56 100644 --- a/arch/mips/alchemy/common/setup.c +++ b/arch/mips/alchemy/common/setup.c | |||
@@ -27,12 +27,9 @@ | |||
27 | 27 | ||
28 | #include <linux/init.h> | 28 | #include <linux/init.h> |
29 | #include <linux/ioport.h> | 29 | #include <linux/ioport.h> |
30 | #include <linux/jiffies.h> | ||
31 | #include <linux/module.h> | ||
32 | 30 | ||
33 | #include <asm/dma-coherence.h> | 31 | #include <asm/dma-coherence.h> |
34 | #include <asm/mipsregs.h> | 32 | #include <asm/mipsregs.h> |
35 | #include <asm/time.h> | ||
36 | 33 | ||
37 | #include <au1000.h> | 34 | #include <au1000.h> |
38 | 35 | ||
@@ -41,18 +38,6 @@ extern void set_cpuspec(void); | |||
41 | 38 | ||
42 | void __init plat_mem_setup(void) | 39 | void __init plat_mem_setup(void) |
43 | { | 40 | { |
44 | unsigned long est_freq; | ||
45 | |||
46 | /* determine core clock */ | ||
47 | est_freq = au1xxx_calc_clock(); | ||
48 | est_freq += 5000; /* round */ | ||
49 | est_freq -= est_freq % 10000; | ||
50 | printk(KERN_INFO "(PRId %08x) @ %lu.%02lu MHz\n", read_c0_prid(), | ||
51 | est_freq / 1000000, ((est_freq % 1000000) * 100) / 1000000); | ||
52 | |||
53 | /* this is faster than wasting cycles trying to approximate it */ | ||
54 | preset_lpj = (est_freq >> 1) / HZ; | ||
55 | |||
56 | if (au1xxx_cpu_needs_config_od()) | 41 | if (au1xxx_cpu_needs_config_od()) |
57 | /* Various early Au1xx0 errata corrected by this */ | 42 | /* Various early Au1xx0 errata corrected by this */ |
58 | set_c0_config(1 << 19); /* Set Config[OD] */ | 43 | set_c0_config(1 << 19); /* Set Config[OD] */ |