From: John Stultz <johnstul@us.ibm.com>
To: Chris Zankel <chris@zankel.net>, <linux-kernel@vger.kernel.org>
Cc: John Stultz <johnstul@us.ibm.com>
Subject: [PATCH] xtensa: Fix unnecessary setting of xtime
Date: Thu, 28 Jan 2010 20:22:27 -0800 [thread overview]
Message-ID: <1264738947-21986-1-git-send-email-johnstul@us.ibm.com> (raw)
xtensa supports read_persisitent_clock(), so there is no reason for
the arch specific code to be setting xtime. Setting xtime will be done
by the generic timekeeping code.
Please let me know if this is some sort of a workaround for an issue
instead of just an oversight.
Signed-off-by: John Stultz <johnstul@us.ibm.com>
---
arch/xtensa/kernel/time.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/arch/xtensa/kernel/time.c b/arch/xtensa/kernel/time.c
index 19f7df3..19df764 100644
--- a/arch/xtensa/kernel/time.c
+++ b/arch/xtensa/kernel/time.c
@@ -60,11 +60,6 @@ static struct irqaction timer_irqaction = {
void __init time_init(void)
{
- /* FIXME: xtime&wall_to_monotonic are set in timekeeping_init. */
- read_persistent_clock(&xtime);
- set_normalized_timespec(&wall_to_monotonic,
- -xtime.tv_sec, -xtime.tv_nsec);
-
#ifdef CONFIG_XTENSA_CALIBRATE_CCOUNT
printk("Calibrating CPU frequency ");
platform_calibrate_ccount();
--
1.6.0.4
next reply other threads:[~2010-01-29 4:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-29 4:22 John Stultz [this message]
2010-03-04 3:11 [PATCH] time: Cleanup warp_clock John Stultz
2010-03-04 3:11 ` [PATCH] time: Cleanup direct xtime usage in xen John Stultz
2010-03-04 3:11 ` [PATCH] xtensa: Fix unnecessary setting of xtime 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=1264738947-21986-1-git-send-email-johnstul@us.ibm.com \
--to=johnstul@us.ibm.com \
--cc=chris@zankel.net \
--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
Powered by JetHome