From: Alexander Schulz <alex@shark-linux.de>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [RFC] RTC policy questions
Date: Sun, 28 Oct 2001 17:32:30 +0100 [thread overview]
Message-ID: <3BDC331E.50B8DB5E@shark-linux.de> (raw)
Hello,
I am currently working on porting the linux kernel to
the Shark, a StrongARM based computer (DNARD from digital)
that contains many parts known from PCs.
On the Shark I have to use the (PC-like) RealTimeClock as a
heartbeat source. This has two consequences:
1) No user may be allowed to alter the frequency of
the RTC interrupt or even turn it off.
AFAIK the alarm cannot be used, because it uses
the same irq.
2) I would like to use the set_rtc_irq_bit and
get_rtc_time functions from drivers/char/rtc.c in
include/asm-arm/arch-shark/time.h to setup the
rtc at bootup. That means that they cannot be
static in rtc.c.
a) I could avoid 2) by duplicating the functions in time.h
(it seems arch-ebsa285/time.h implements its own setup),
but I hate duplicating code.
b) I solved 1) by patching rtc.c to exclude the offending
code if CONFIG_ARCH_SHARK is defined. The only other way
I can think of would be to have a complete rtc driver
for the shark but that again would mean duplicating code.
What do you think? Is it ok to patch the rtc.c or would it be
better to duplicate the code? Are there more possible solutions
that I cannot think of?
I am using 2.4.12-ac6-rmk2 at the moment but the problem is
mostly version independent.
Thanks for all comments
Alexander
next reply other threads:[~2001-10-28 16:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-28 16:32 Alexander Schulz [this message]
2001-10-28 16:58 ` [RFC] RTC policy questions Tom Rini
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=3BDC331E.50B8DB5E@shark-linux.de \
--to=alex@shark-linux.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.