From: Viresh Kumar <viresh.kumar@linaro.org>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org,
Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
Viresh Kumar <viresh.kumar@linaro.org>
Subject: [PATCH 0/2] clockevents: Hide CLOCK_EVT_STATE_* from rest of the kernel
Date: Wed, 20 May 2015 14:36:54 +0530 [thread overview]
Message-ID: <cover.1432112458.git.viresh.kumar@linaro.org> (raw)
Hi Thomas,
Ingo suggested [1] to keep CLOCK_EVT_STATE_* symbols somewhere in
kernel/time/. We couldn't do it as bL_switcher code was using it
earlier. But that's fixed now. And so the first patch moves these
symbols to tick-internal.h.
Some of the drivers [2] need to verify state of the clockevent device
from their callbacks or interrupt handlers.
Because these symbols (defined by 'enum clock_event_state') will now be
internal to the core, we need some helpers to verify state of a
clockevent device.
One way out was to maintain the state in drivers as well, but that would
be unnecessary burden on them. And so the second patch introduces
helpers for these states.
Rebased-over: tip/timers/core (dependency on 8fff52fd5093 ("clockevents:
Introduce CLOCK_EVT_STATE_ONESHOT_STOPPED state"))
--
viresh
[1] https://lists.linaro.org/pipermail/linaro-kernel/2015-February/020292.html
[2] http://pastebin.com/374X18mv
Viresh Kumar (2):
clockevents: Move 'enum clock_event_state' to tick-internal.h
clockevents: Add helpers to verify state of a clockevent device
include/linux/clockchips.h | 34 ++++++++++++----------------------
kernel/time/clockevents.c | 31 +++++++++++++++++++++++++++++++
kernel/time/tick-internal.h | 21 +++++++++++++++++++++
3 files changed, 64 insertions(+), 22 deletions(-)
--
2.4.0
next reply other threads:[~2015-05-20 9:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-20 9:06 Viresh Kumar [this message]
2015-05-20 9:06 ` [PATCH 1/2] clockevents: Move 'enum clock_event_state' to tick-internal.h Viresh Kumar
2015-05-20 9:06 ` [PATCH 2/2] clockevents: Add helpers to verify state of a clockevent device Viresh Kumar
2015-05-20 13:09 ` [PATCH 0/2] clockevents: Hide CLOCK_EVT_STATE_* from rest of the kernel Thomas Gleixner
2015-05-20 14:04 ` Viresh Kumar
2015-05-20 14:20 ` Thomas Gleixner
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=cover.1432112458.git.viresh.kumar@linaro.org \
--to=viresh.kumar@linaro.org \
--cc=linaro-kernel@lists.linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
/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