[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-a6371f80230eaaafd7eef7efeedaa9509bdc982d@git.kernel.org>
Date: Thu, 19 Apr 2012 12:38:39 -0700
From: tip-bot for Suresh Siddha <suresh.b.siddha@...el.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...nel.org,
santosh.shilimkar@...com, suresh.b.siddha@...el.com,
tglx@...utronix.de
Subject: [tip:timers/urgent] tick:
Fix the spurious broadcast timer ticks after resume
Commit-ID: a6371f80230eaaafd7eef7efeedaa9509bdc982d
Gitweb: http://git.kernel.org/tip/a6371f80230eaaafd7eef7efeedaa9509bdc982d
Author: Suresh Siddha <suresh.b.siddha@...el.com>
AuthorDate: Wed, 18 Apr 2012 19:27:39 -0700
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitDate: Thu, 19 Apr 2012 21:27:50 +0200
tick: Fix the spurious broadcast timer ticks after resume
During resume, tick_resume_broadcast() programs the broadcast timer in
oneshot mode unconditionally. On the platforms where broadcast timer
is not really required, this will generate spurious broadcast timer
ticks upon resume. For example, on the always running apic timer
platforms with HPET, I see spurious hpet tick once every ~5minutes
(which is the 32-bit hpet counter wraparound time).
Similar to boot time, during resume make the oneshot mode setting of
the broadcast clock event device conditional on the state of active
broadcast users.
Signed-off-by: Suresh Siddha <suresh.b.siddha@...el.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@...com>
Tested-by: svenjoac@....de
Cc: torvalds@...ux-foundation.org
Cc: rjw@...k.pl
Link: http://lkml.kernel.org/r/1334802459.28674.209.camel@sbsiddha-desk.sc.intel.com
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
---
kernel/time/tick-broadcast.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c
index 029531f..f113755 100644
--- a/kernel/time/tick-broadcast.c
+++ b/kernel/time/tick-broadcast.c
@@ -346,7 +346,8 @@ int tick_resume_broadcast(void)
tick_get_broadcast_mask());
break;
case TICKDEV_MODE_ONESHOT:
- broadcast = tick_resume_broadcast_oneshot(bc);
+ if (!cpumask_empty(tick_get_broadcast_mask()))
+ broadcast = tick_resume_broadcast_oneshot(bc);
break;
}
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists