Skip to content

notifiers: split notifier.h into subsystem headers

Amerigo Wang linux-mmc linux-pm lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5cpu: move cpu notifiers into cpu.hinclude/linux/cpu.h include/linux/notifier.h net/rds/page.c+36 -320 replies
2/5net: move netdevice notifiers into netdevice.hinclude/linux/netdevice.h include/linux/notifier.h+34 -300 replies
3/5sys: move reboot notifiers into reboot.hinclude/linux/notifier.h include/linux/reboot.h kernel/notifier.c +1 more+37 -360 replies
4/5pm: move pm notifiers into suspend.hdrivers/mmc/core/core.c include/linux/notifier.h include/linux/suspend.h+13 -88 replies
4/5pm: move pm notifiers into suspend.hdrivers/mmc/core/core.c include/linux/notifier.h include/linux/suspend.h+13 -80 replies
5/5vt: move vt notifiers into vt.hinclude/linux/notifier.h include/linux/vt.h+9 -70 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid S. Miller
SeriesA-b
1/5
2/5
3/5
4/5
4/5
5/5

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 0/5] notifiers: split notifier.h into subsystem headers

Now we define all kinds of notifiers in notifier.h, this is not necessary at all, since different subsystems use different notifiers, they are almost non-related with each other.

This can also save much build time. Suppose I add a new netdevice event, really I don't have to recompile all the source, just network related. Without this patch, all the source will be recompiled.

I move the notify events near to their subsystem notifier registers, so that they can be found more easily.

In case of conflicts, I hope Andrew Morton would take the whole patchset, rather than different subsystem maintainers take their own.

---
 drivers/mmc/core/core.c   |    3 ++
 include/linux/cpu.h       |   33 ++++++++++++++++++
 include/linux/netdevice.h |   36 ++++++++++++++++++--
 include/linux/notifier.h  |   82 +++-----------------------------------------
 include/linux/reboot.h    |    5 +++
 include/linux/suspend.h   |    8 ++++
 include/linux/vt.h        |    7 ++++
 kernel/notifier.c         |   31 -----------------
 kernel/sys.c              |   32 +++++++++++++++++-
 net/rds/page.c            |    1 +
 10 files changed, 127 insertions(+), 111 deletions(-)