* [PATCH v2] jiffies: use CLOCKSOURCE_MASK instead of constant
@ 2016-02-06 7:55 Alexander Kuleshov
2016-02-25 22:55 ` John Stultz
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Kuleshov @ 2016-02-06 7:55 UTC (permalink / raw)
To: Thomas Gleixner
Cc: Ingo Molnar, John Stultz, Peter Zijlstra, Rafael J . Wysocki,
Viresh Kumar, linux-kernel, Alexander Kuleshov
The CLOCKSOURCE_MASK(32) macro expands to the same value, but
makes code more readable.
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
v2: typo fixed in commit message
kernel/time/jiffies.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/time/jiffies.c b/kernel/time/jiffies.c
index 347fecf..555e21f 100644
--- a/kernel/time/jiffies.c
+++ b/kernel/time/jiffies.c
@@ -68,7 +68,7 @@ static struct clocksource clocksource_jiffies = {
.name = "jiffies",
.rating = 1, /* lowest valid rating*/
.read = jiffies_read,
- .mask = 0xffffffff, /*32bits*/
+ .mask = CLOCKSOURCE_MASK(32),
.mult = NSEC_PER_JIFFY << JIFFIES_SHIFT, /* details above */
.shift = JIFFIES_SHIFT,
.max_cycles = 10,
--
2.7.0.25.gfc10eb5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] jiffies: use CLOCKSOURCE_MASK instead of constant
2016-02-06 7:55 [PATCH v2] jiffies: use CLOCKSOURCE_MASK instead of constant Alexander Kuleshov
@ 2016-02-25 22:55 ` John Stultz
0 siblings, 0 replies; 2+ messages in thread
From: John Stultz @ 2016-02-25 22:55 UTC (permalink / raw)
To: Alexander Kuleshov
Cc: Thomas Gleixner, Ingo Molnar, Peter Zijlstra, Rafael J . Wysocki,
Viresh Kumar, lkml
On Fri, Feb 5, 2016 at 11:55 PM, Alexander Kuleshov
<kuleshovmail@gmail.com> wrote:
> The CLOCKSOURCE_MASK(32) macro expands to the same value, but
> makes code more readable.
>
> Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Queued for testing.
thanks
-john
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-25 22:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-06 7:55 [PATCH v2] jiffies: use CLOCKSOURCE_MASK instead of constant Alexander Kuleshov
2016-02-25 22:55 ` John Stultz
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).