Hi  Jeremy,

> + help
> +  export clk debug information to user space
> diff --git a/arch/arm/common/clkdev.c b/arch/arm/common/clkdev.c
> index 9e4c4d9..5f4a309 100644
> --- a/arch/arm/common/clkdev.c
> +++ b/arch/arm/common/clkdev.c

This is still arm-specific? Looks like you've moved some of the changes to
kernel/clk.c, but not all of them.

The only change we should need to the ARM code is to call clk_debug_register
in the clkdev_add and clkdev_add_table functions. See my original patch for
details.

It is not appropriate to add clk_debug_register in clkdev_add(), since at the time of clock registering (normally at board initialization or other early stage of boot up), debug fs system has not been initialized (happends in core_initcall). Therefore, it is better to leave it in a standalone function which will be called in late_initcall.

Yong