diff mbox

[v2,1/7] clocksource: export "arch_timer_get_rate" for the other drivers

Message ID 1432197156-16947-2-git-send-email-fu.wei@linaro.org
State New
Headers show

Commit Message

Fu Wei Fu May 21, 2015, 8:32 a.m. UTC
From: Fu Wei <fu.wei@linaro.org>

Some devices get clock from system counter, like SBSA watchdog
driver. They may need to get system counter rate.

Signed-off-by: Fu Wei <fu.wei@linaro.org>
---
 drivers/clocksource/arm_arch_timer.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Hanjun Guo May 22, 2015, 2:02 p.m. UTC | #1
On 2015年05月21日 16:32, fu.wei@linaro.org wrote:
> From: Fu Wei <fu.wei@linaro.org>
>
> Some devices get clock from system counter, like SBSA watchdog
> driver. They may need to get system counter rate.

and please add a comment that SBSA watchdog is a kernel module,
then it would explicit that why EXPORT_SYMBOL_GPL is needed.

>
> Signed-off-by: Fu Wei <fu.wei@linaro.org>

Other than that,

Acked-by: Hanjun Guo <hanjun.guo@linaro.org>

> ---
>   drivers/clocksource/arm_arch_timer.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
> index 0aa135d..4327bf9 100644
> --- a/drivers/clocksource/arm_arch_timer.c
> +++ b/drivers/clocksource/arm_arch_timer.c
> @@ -410,6 +410,7 @@ u32 arch_timer_get_rate(void)
>   {
>   	return arch_timer_rate;
>   }
> +EXPORT_SYMBOL_GPL(arch_timer_get_rate);
>
>   static u64 arch_counter_get_cntvct_mem(void)
>   {
>
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
index 0aa135d..4327bf9 100644
--- a/drivers/clocksource/arm_arch_timer.c
+++ b/drivers/clocksource/arm_arch_timer.c
@@ -410,6 +410,7 @@  u32 arch_timer_get_rate(void)
 {
 	return arch_timer_rate;
 }
+EXPORT_SYMBOL_GPL(arch_timer_get_rate);
 
 static u64 arch_counter_get_cntvct_mem(void)
 {