This source file includes following definitions.
- plat_time_init
1
2
3
4
5
6
7
8
9 #include <linux/init.h>
10 #include <linux/time.h>
11 #include <linux/err.h>
12 #include <linux/clk.h>
13
14 #include <asm/time.h>
15 #include <asm/mach-ar7/ar7.h>
16
17 void __init plat_time_init(void)
18 {
19 struct clk *cpu_clk;
20
21
22 ar7_init_clocks();
23
24 cpu_clk = clk_get(NULL, "cpu");
25 if (IS_ERR(cpu_clk)) {
26 printk(KERN_ERR "unable to get cpu clock\n");
27 return;
28 }
29
30 mips_hpt_frequency = clk_get_rate(cpu_clk) / 2;
31 }