Delays, clocks, timers, hrtimers, etc

Michal Simek michal.simek at xilinx.com
Sun Feb 8 23:45:42 PST 2015


+ Soren

>> $ grep -rn ARM_GLOBAL_TIMER | grep -v SCHED_CLOCK
>> arch/arm/mach-vexpress/Kconfig:7:	select ARM_GLOBAL_TIMER
>> arch/arm/mach-bcm/Kconfig:87:	select ARM_GLOBAL_TIMER
>> arch/arm/mach-bcm/Kconfig:108:	select ARM_GLOBAL_TIMER
>> arch/arm/mach-rockchip/Kconfig:14:	select ARM_GLOBAL_TIMER
>> arch/arm/mach-sti/Kconfig:4:	select ARM_GLOBAL_TIMER
>> arch/arm/mach-zynq/Kconfig:6:	select ARM_GLOBAL_TIMER if !CPU_FREQ
>>
>> There are indeed a few users; also I wonder why mach-zynq enables
>> ARM_GLOBAL_TIMER only if !CPU_FREQ. (Could it be that they have
>> the CPU CLOCK driving PERIPHCLK?)
> 
> I'm afraid I don't know.

The reason is that cpu clock input and global timer clock input are not independent
that's why changing clock for cpu also affect global timer freq which is wrong.
It is caused by incorrect hw design.
Soren can give you more detail information if you need.

Thanks,
Michal



More information about the linux-arm-kernel mailing list