From: Amerigo Wang <amwang@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: akpm@linux-foundation.org, netdev@vger.kernel.org,
WANG Cong <amwang@redhat.com>
Subject: [PATCH 0/5] notifiers: split notifier.h into subsystem headers
Date: Wed, 22 Jun 2011 14:35:17 +0800 [thread overview]
Message-ID: <1308724522-32461-1-git-send-email-amwang@redhat.com> (raw)
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.
Signed-off-by: WANG Cong <amwang@redhat.com>
---
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(-)
next reply other threads:[~2011-06-22 6:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-22 6:35 Amerigo Wang [this message]
2011-06-22 6:35 ` [PATCH 1/5] cpu: move cpu notifiers into cpu.h Amerigo Wang
2011-06-22 6:35 ` [PATCH 2/5] net: move netdevice notifiers into netdevice.h Amerigo Wang
2011-06-22 6:35 ` [PATCH 3/5] sys: move reboot notifiers into reboot.h Amerigo Wang
2011-06-22 6:35 ` [PATCH 4/5] pm: move pm notifiers into suspend.h Amerigo Wang
2011-06-22 19:49 ` Rafael J. Wysocki
2011-06-23 5:03 ` Cong Wang
2011-06-23 12:04 ` Rafael J. Wysocki
2011-06-23 20:24 ` Pavel Machek
2011-06-22 6:35 ` [PATCH 5/5] vt: move vt notifiers into vt.h Amerigo Wang
2011-06-22 6:42 ` [PATCH 0/5] notifiers: split notifier.h into subsystem headers David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1308724522-32461-1-git-send-email-amwang@redhat.com \
--to=amwang@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).