Skip to content

clocksource/events: Overhaul (un)registration

Thomas Gleixner lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15clocksource: apb_timer: Remove unsused functiondrivers/clocksource/dw_apb_timer.c include/linux/dw_apb_timer.h+0 -132 replies
2/15clocksource: Always verify highres capabilitykernel/time/clocksource.c+26 -51 reply
3/15clocksource: Let timekeeping_notify return success/errorinclude/linux/clocksource.h kernel/time/clocksource.c kernel/time/timekeeping.c+7 -61 reply
4/15clocksource: Add module refcountinclude/linux/clocksource.h kernel/time/timekeeping.c+13 -51 reply
5/15clocksource: Allow clocksource select to skip current clocksourcekernel/time/clocksource.c+14 -102 replies
6/15clocksource: Split out user string inputkernel/time/clocksource.c+21 -142 replies
7/15clocksource: Provide unbind interface in sysfskernel/time/clocksource.c+68 -04 replies
8/15clocksource: Let clocksource_unregister() return success/errorinclude/linux/clocksource.h kernel/time/clocksource.c+13 -221 reply
9/15clockevents: Get rid of the notifier chaininclude/linux/clockchips.h kernel/time/clockevents.c kernel/time/tick-broadcast.c +2 more+14 -640 replies
10/15clockevents: Simplify lockingkernel/time/tick-common.c+5 -170 replies
11/15clockevents: Move the tick_notify() switch case to clockevents_notify()kernel/time/clockevents.c kernel/time/tick-common.c kernel/time/tick-internal.h+35 -480 replies
12/15clockevents: Add module refcountinclude/linux/clockchips.h kernel/time/clockevents.c kernel/time/tick-broadcast.c +1 more+11 -00 replies
13/15clockevents: Provide sysfs interfacekernel/time/clockevents.c+86 -03 replies
14/15clockevents: Split out selection logickernel/time/tick-broadcast.c kernel/time/tick-common.c+56 -380 replies
15/15clockevents: Implement unbind functionalityinclude/linux/clockchips.h kernel/time/clockevents.c kernel/time/clocksource.c +2 more+162 -40 replies

Reviews trailers per patch

4 of 15 patches have a Reviewed-by or Acked-by.

PatchJamie IlesJohn Stultz
1/15A-b A-b
2/15A-b
3/15A-b
4/15
5/15
6/15
7/15
8/15A-b
9/15
10/15
11/15
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [patch 00/15] clocksource/events: Overhaul (un)registration

The clocksource_unregister() interface is broken. A clocksource can be removed unconditionally even if there is no fallback clocksource available. clocksources in a module can be removed as well. Aside of that the registration part lacks a few sanity checks as well.

The clockevents layer does not allow unregistration, but for reconfigurable hardware this is a must have feature.

The following patch series fixes the clocksource part and adds unregister support for clockevent devices.

Thanks,

tglx

---
 drivers/clocksource/dw_apb_timer.c |   12 -
 include/linux/clockchips.h         |    4 
 include/linux/clocksource.h        |    7 
 include/linux/dw_apb_timer.h       |    1 
 kernel/time/clockevents.c          |  271 ++++++++++++++++++++++++++++++++-----
 kernel/time/clocksource.c          |  190 +++++++++++++++++++------
 kernel/time/tick-broadcast.c       |   33 +++-
 kernel/time/tick-common.c          |  189 +++++++++----------------
 kernel/time/tick-internal.h        |   17 +-
 kernel/time/timekeeping.c          |   20 +-
 10 files changed, 514 insertions(+), 230 deletions(-)