From: Wladislav Wiebe <wladislav.kw@gmail.com>
To: linuxppc-dev@lists.ozlabs.org
Subject: PPC: set default date on PPC without RTC
Date: Wed, 11 Sep 2013 11:39:54 +0200 [thread overview]
Message-ID: <52303A6A.2050702@gmail.com> (raw)
Hello guys,
would like to ask if there is a proper possibility on PPC to
set default date (basically the year). The board has no RTC chip,
and I would need instead of 1970 another year.
For some reason does e.g:
--- a/linux/arch/powerpc/kernel/time.c
+++ b/linux/arch/powerpc/kernel/time.c
@@ -1099,7 +1099,7 @@ void __init time_init(void)
#define FEBRUARY 2
-#define STARTOFTIME 1970
+#define STARTOFTIME 2013
#define SECDAY 86400L
#define SECYR (SECDAY * 365)
#define leapyear(year) ((year) % 4 == 0 && \
not work to me. Is there also another place which should be changed?
(I know it can be changed from userspace also, but I would need it before userspace)
Thanks and BR,
Wladislav Wiebe
next reply other threads:[~2013-09-11 9:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-11 9:39 Wladislav Wiebe [this message]
2013-09-11 17:53 ` PPC: set default date on PPC without RTC Wladislav Wiebe
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=52303A6A.2050702@gmail.com \
--to=wladislav.kw@gmail.com \
--cc=linuxppc-dev@lists.ozlabs.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;
as well as URLs for NNTP newsgroup(s).