From: john stultz <johnstul@us.ibm.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>,
lkml <linux-kernel@vger.kernel.org>
Subject: [-mm PATCH] time: i386 conversion part 3 - lock jiffies_64 manipulation
Date: Fri, 03 Mar 2006 20:02:06 -0800 [thread overview]
Message-ID: <1141444927.9727.110.camel@cog.beaverton.ibm.com> (raw)
In-Reply-To: <1141444689.9727.105.camel@cog.beaverton.ibm.com>
Hey Andrew,
This should merge TOD my changes with Atsushi's jiffies/jiffies_64 fix
that is in your tree.
thanks
-john
Signed-off-by: John Stultz <johnstul@us.ibm.com>
diff -ru mmmerge/arch/i386/kernel/time.c mytree/arch/i386/kernel/time.c
--- mmmerge/arch/i386/kernel/time.c 2006-03-03 19:44:22.000000000 -0800
+++ mytree/arch/i386/kernel/time.c 2006-03-03 19:44:45.000000000 -0800
@@ -266,6 +266,7 @@
static int timer_resume(struct sys_device *dev)
{
+ unsigned long flags;
unsigned long sec;
unsigned long sleep_length;
@@ -276,8 +277,10 @@
setup_pit_timer();
sec = get_cmos_time() + clock_cmos_diff;
sleep_length = (get_cmos_time() - sleep_start) * HZ;
+ write_seqlock_irqsave(&xtime_lock, flags);
jiffies_64 += sleep_length;
wall_jiffies += sleep_length;
+ write_sequnlock_irqrestore(&xtime_lock, flags);
touch_softlockup_watchdog();
return 0;
}
next prev parent reply other threads:[~2006-03-04 4:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-04 3:58 [-mm PATCH] time: reduced ntp rework part 2 - remove duplicate leapsecond code john stultz
2006-03-04 4:02 ` john stultz [this message]
2006-03-04 4:10 ` [-mm PATCH] time: i386 clocksource drivers - drop acpi_pm_buggy paranoia john stultz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1141444927.9727.110.camel@cog.beaverton.ibm.com \
--to=johnstul@us.ibm.com \
--cc=akpm@osdl.org \
--cc=anemo@mba.ocn.ne.jp \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®