Your message dated Fri, 12 Aug 2005 11:22:00 +0200
with message-id <[EMAIL PROTECTED]>
and subject line clock time incorrect after suspend/resume [PATCH]
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 20 Jan 2005 04:24:33 +0000
>From [EMAIL PROTECTED] Wed Jan 19 20:24:33 2005
Return-path: <[EMAIL PROTECTED]>
Received: from smta05.mail.ozemail.net [203.103.165.90] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CrTs0-0002qZ-00; Wed, 19 Jan 2005 20:24:33 -0800
Received: from pug.anu.edu.au ([150.203.181.71]) by smta05.mail.ozemail.net
          with ESMTP
          id <[EMAIL PROTECTED]>;
          Thu, 20 Jan 2005 04:24:31 +0000
Received: from drew by pug.anu.edu.au with local (Exim 4.43)
        id 1CrTry-0001cb-IK; Thu, 20 Jan 2005 15:24:30 +1100
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Drew Parsons <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: clock time incorrect after suspend/resume [PATCH]
X-Mailer: reportbug 3.5
Date: Thu, 20 Jan 2005 15:24:30 +1100
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: kernel-source-2.6.10
Version: 2.6.10-4
Severity: normal
Tags: patch

The 2.6.10 kernel introduced a problem with the system clock after a
suspend/resume cycle.  Although the hardware clock retains the correct time,
the system clock goes fast by many hours after resuming.  Obviously, this
screws up convenient use of the file system.

The kernel developers have identified the problem in the wall-clock jiffies,
and a patch is available.  I believe it has already been fixed in 2.6.11-rc1.

The patch is:

diff -ruNp 910-original-time-patch-old/arch/i386/kernel/time.c
910-original-time-patch-new/arch/i386/kernel/time.c
--- 910-original-time-patch-old/arch/i386/kernel/time.c 2004-12-27
+++ 910-original-time-patch-new/arch/i386/kernel/time.c 2005-01-08
@@ -343,12 +343,13 @@ static int timer_resume(struct sys_devic
                hpet_reenable();
#endif
        sec = get_cmos_time() + clock_cmos_diff;
-       sleep_length = get_cmos_time() - sleep_start;
+       sleep_length = (get_cmos_time() - sleep_start) * HZ;
        write_seqlock_irqsave(&xtime_lock, flags);
        xtime.tv_sec = sec;
        xtime.tv_nsec = 0;
        write_sequnlock_irqrestore(&xtime_lock, flags);
-       jiffies += sleep_length * HZ;
+       jiffies += sleep_length;
+       wall_jiffies += sleep_length;
        return 0;
 }


(taken from the linux-kernel mailing list at
http://marc.theaimsgroup.com/?l=linux-kernel&m=110557084814587&w=2)

Drew

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages kernel-source-2.6.10 depends on:
ii  binutils                      2.15-5     The GNU assembler, linker and bina
ii  bzip2                         1.0.2-3    high-quality block-sorting file co
ii  coreutils [fileutils]         5.2.1-2    The GNU core utilities

-- no debconf information

---------------------------------------
Received: (at 291333-done) by bugs.debian.org; 12 Aug 2005 09:22:38 +0000
>From [EMAIL PROTECTED] Fri Aug 12 02:22:38 2005
Return-path: <[EMAIL PROTECTED]>
Received: from baikonur.stro.at [213.239.196.228] 
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1E3VkM-0003Bc-00; Fri, 12 Aug 2005 02:22:38 -0700
Received: by baikonur.stro.at (Postfix, from userid 1001)
        id DA76D5C00F; Fri, 12 Aug 2005 11:22:00 +0200 (CEST)
Date: Fri, 12 Aug 2005 11:22:00 +0200
From: Maximilian Attems <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: clock time incorrect after suspend/resume [PATCH]
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.9i
X-Virus-Scanned: by Amavis (ClamAV) at stro.at
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02

fixed upstream therefor closing as current linux image 2.6.12 contains
fix.

--
maks


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to