From: Will Deacon Date: Fri, 6 Jul 2012 14:46:45 +0000 (+0100) Subject: ARM: 7451/1: arch timer: implement read_current_timer and get_cycles X-Git-Tag: v3.6-rc1~70^2^3~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=923df96b9f31b7d08d8438ff9677326d9537accf;p=pandora-kernel.git ARM: 7451/1: arch timer: implement read_current_timer and get_cycles This patch implements read_current_timer using the architected timers when they are selected via CONFIG_ARM_ARCH_TIMER. If they are detected not to be usable at runtime, we return -ENXIO to the caller. Furthermore, if read_current_timer is exported then we can implement get_cycles in terms of it for use as both an entropy source and for implementing __udelay and friends. Tested-by: Shinya Kuribayashi Reviewed-by: Stephen Boyd Signed-off-by: Will Deacon Signed-off-by: Russell King --- Reading git-diff-tree failed