rpms/kernel/FC-5 linux-2.6-x86_64-c3-timer-latency.patch, NONE, 1.1 kernel-2.6.spec, 1.2218, 1.2219
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Mon Oct 30 05:21:15 UTC 2006
Author: davej
Update of /cvs/dist/rpms/kernel/FC-5
In directory cvs.devel.redhat.com:/tmp/cvs-serv11651
Modified Files:
kernel-2.6.spec
Added Files:
linux-2.6-x86_64-c3-timer-latency.patch
Log Message:
x86_64: Fix up C3 timer latency.
linux-2.6-x86_64-c3-timer-latency.patch:
time.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
--- NEW FILE linux-2.6-x86_64-c3-timer-latency.patch ---
>From davej Sat Oct 21 18:52:54 2006
Return-path: <linux-kernel-owner+davej=40kernelslacker.org-S1422657AbWJUWuz at vger.kernel.org>
X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on
pressure.kernelslacker.org
X-Spam-Level:
X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham
version=3.1.4
Envelope-to: davej at kernelslacker.org
Delivery-date: Sat, 21 Oct 2006 23:52:28 +0100
Received: from testure.choralone.org [194.9.77.134]
by pressure.kernelslacker.org with IMAP (fetchmail-6.3.4)
for <davej at localhost> (single-drop); Sat, 21 Oct 2006 18:52:54 -0400 (EDT)
Received: from vger.kernel.org ([209.132.176.167])
by testure.choralone.org with esmtp (Exim 4.63)
(envelope-from <linux-kernel-owner+davej=40kernelslacker.org-S1422657AbWJUWuz at vger.kernel.org>)
id 1GbPhc-0007g9-Cy
for davej at kernelslacker.org; Sat, 21 Oct 2006 23:52:28 +0100
Received: (majordomo at vger.kernel.org) by vger.kernel.org via listexpand
id S1422657AbWJUWuz (ORCPT <rfc822;davej at kernelslacker.org>);
Sat, 21 Oct 2006 18:50:55 -0400
Received: (majordomo at vger.kernel.org) by vger.kernel.org id S1422838AbWJUWuy
(ORCPT <rfc822;linux-kernel-outgoing>);
Sat, 21 Oct 2006 18:50:54 -0400
Received: from ns.suse.de ([195.135.220.2]:3028 "EHLO mx1.suse.de")
by vger.kernel.org with ESMTP id S1422657AbWJUWuy (ORCPT
<rfc822;linux-kernel at vger.kernel.org>);
Sat, 21 Oct 2006 18:50:54 -0400
Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
by mx1.suse.de (Postfix) with ESMTP id AB1AB11E4C;
Sun, 22 Oct 2006 00:50:52 +0200 (CEST)
From: Andi Kleen <ak at suse.de>
References: <200610221250.493223000 at suse.de>
In-Reply-To: <200610221250.493223000 at suse.de>
To: patches at x86-64.org, linux-kernel at vger.kernel.org
Subject: [PATCH] [1/2] x86_64: Fix C3 timer test
Message-Id: <20061021225052.9395013B62 at wotan.suse.de>
Date: Sun, 22 Oct 2006 00:50:52 +0200 (CEST)
Sender: linux-kernel-owner at vger.kernel.org
Precedence: bulk
X-Mailing-List: linux-kernel at vger.kernel.org
Status: RO
Content-Length: 1105
Lines: 31
There was a typo in the C3 latency test to decide of the TSC
should be used or not. It used the C2 latency threshold, not the
C3 one. Fix that.
This should fix the time on various dual core laptops.
Signed-off-by: Andi Kleen <ak at suse.de>
---
arch/x86_64/kernel/time.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: linux/arch/x86_64/kernel/time.c
===================================================================
--- linux.orig/arch/x86_64/kernel/time.c
+++ linux/arch/x86_64/kernel/time.c
@@ -948,7 +948,7 @@ __cpuinit int unsynchronized_tsc(void)
if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) {
#ifdef CONFIG_ACPI
/* But TSC doesn't tick in C3 so don't use it there */
- if (acpi_fadt.length > 0 && acpi_fadt.plvl3_lat < 100)
+ if (acpi_fadt.length > 0 && acpi_fadt.plvl3_lat < 1000)
return 1;
#endif
return 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Index: kernel-2.6.spec
===================================================================
RCS file: /cvs/dist/rpms/kernel/FC-5/kernel-2.6.spec,v
retrieving revision 1.2218
retrieving revision 1.2219
diff -u -r1.2218 -r1.2219
--- kernel-2.6.spec 30 Oct 2006 05:13:44 -0000 1.2218
+++ kernel-2.6.spec 30 Oct 2006 05:21:13 -0000 1.2219
@@ -255,6 +255,7 @@
Patch207: linux-2.6-x86_64-tif-restore-sigmask.patch
Patch208: linux-2.6-x86_64-add-ppoll-pselect.patch
Patch211: linux-2.6-x86-unwinder-fixes.patch
+Patch212: linux-2.6-x86_64-c3-timer-latency.patch
# 300 - 399 ppc(64)
Patch300: linux-2.6-ppc-dac960-ipr-clash.patch
@@ -740,6 +741,8 @@
%patch208 -p1
# DWARF2 unwinder fixes.
%patch211 -p1
+# Fix up C3 timer latency.
+%patch212 -p1
#
# PowerPC
@@ -1641,6 +1644,7 @@
* Sun Oct 29 2006 Dave Jones <davej at redhat.com>
- More ext3 robustness fixes.
- Include more verbose BUG() data
+- x86_64: Fix up C3 timer latency.
* Sat Oct 21 2006 Dave Jones <davej at redhat.com>
- Reenable NCPFS (#211325, #203663)
More information about the fedora-cvs-commits
mailing list