kernel_optimize_test/arch/arc
Vlad Zakharov 7f35144cea ARC: get rate from clk driver instead of reading device tree
We were reading clock rate directly from device tree "clock-frequency"
property of corresponding clock node in show_cpuinfo function.

Such approach is correct only in case cpu is always clocked by
"fixed-clock". If we use clock driver that allows rate to be changed
this won't work as rate may change during the time or even
"clock-frequency" property may not be presented at all.

So this commit replaces reading device tree with getting rate from clock
driver. This approach is much more flexible and will work for both fixed
and mutable clocks.

Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
2017-03-05 20:04:59 -08:00
..
boot ARC: [dts] add cpu nodes to ARCHS SMP device tree 2017-03-05 20:04:59 -08:00
configs
include sched/headers: Prepare for new header dependencies before moving code to <linux/sched/mm.h> 2017-03-02 08:42:28 +01:00
kernel ARC: get rate from clk driver instead of reading device tree 2017-03-05 20:04:59 -08:00
lib
mm sched/headers: Prepare to remove the <linux/mm_types.h> dependency from <linux/sched.h> 2017-03-02 08:42:37 +01:00
oprofile
plat-axs10x
plat-eznps
plat-sim
plat-tb10x
Kbuild
Kconfig
Kconfig.debug
Makefile