This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] linux: fix condition for entering tickles

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] linux: fix condition for entering tickless state
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 09 Mar 2007 13:30:11 -0800
Delivery-date: Fri, 09 Mar 2007 13:29:57 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1173465052 0
# Node ID 818da23b7571b3f6f6f12bb80658f9a13ed8b8f3
# Parent  215b799fa181a807aed289e39b56c8e0c463f322
linux: fix condition for entering tickless state

I noticed that timer interrupts were running at full rate regardless
of whether the system was idle.
softlockup_get_next_event() must return the maximum of zero and the
delta to the next event, not the minimum (which is always zero or
negative, yielding zero or a very large positive number as return

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
 patches/linux-2.6.18/softlockup-no-idle-hz.patch |    1 -
 1 files changed, 1 deletion(-)

diff -r 215b799fa181 -r 818da23b7571 
--- a/patches/linux-2.6.18/softlockup-no-idle-hz.patch  Fri Mar 09 18:26:47 
2007 +0000
+++ b/patches/linux-2.6.18/softlockup-no-idle-hz.patch  Fri Mar 09 18:30:52 
2007 +0000
@@ -34,7 +34,7 @@ diff -pruN ../orig-linux-2.6.18/kernel/s
 +                      !per_cpu(watchdog_task, this_cpu))
 +              return MAX_JIFFY_OFFSET;
-+      return min_t(long, 0, touch_timestamp + HZ - jiffies);
++      return max_t(long, 0, touch_timestamp + HZ - jiffies);

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] linux: fix condition for entering tickless state, Xen patchbot-unstable <=