[PATCH v2 0/2] clocksource: don't suspend/resume when unused

Boris Brezillon boris.brezillon at free-electrons.com
Fri Jan 16 09:45:16 PST 2015


On Fri, 16 Jan 2015 17:57:17 +0100
Alexandre Belloni <alexandre.belloni at free-electrons.com> wrote:

> This is a quite naive implementation to track whether a clocksource is enabled.
> I chose not to add a member in struct clocksource and use a flag instead.
> 
> I found that timekeeping.c is the only consumer for clocksource and I converted
> it to use clocksource_enable and clocksource_disable.

To the whole series:

Reviewed-by: Boris Brezillon <boris.brezillon at free-electrons.com>

> 
> Changes in v2:
>  - removed the check on enable in timekeeping.c to ensure all clocksources are
>    going through clocksource_enable
>  - rework clocksource_enable to set CLOCK_SOURCE_USED when enable is successful
>    if present
> 
> Alexandre Belloni (2):
>   clocksource: track usage
>   clocksource: don't suspend/resume when unused
> 
>  include/linux/clocksource.h |  4 ++++
>  kernel/time/clocksource.c   | 34 ++++++++++++++++++++++++++++++++--
>  kernel/time/timekeeping.c   |  8 +++-----
>  3 files changed, 39 insertions(+), 7 deletions(-)
> 



-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com



More information about the linux-arm-kernel mailing list