All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tim Hockin <thockin@sun.com>
To: p_gortmaker@yahoo.com,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	torvalds@transmeta.com, alan@redhat.com
Subject: [PATCH] don't reset alarm interrupt on RTC
Date: Wed, 31 Oct 2001 14:08:41 -0800	[thread overview]
Message-ID: <3BE07669.5FF78E63@sun.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 339 bytes --]

All,

Attached is a 1-liner to not clear the Alarm-Int-Enable bit automatically
on the RTC device.  This makes wake-on-alarm possible.

Please let me know if there is a problem with it.  This is against 2.4.13
for inclusion in 2.4.14.

Tim
-- 
Tim Hockin
Systems Software Engineer
Sun Microsystems, Cobalt Server Appliances
thockin@sun.com

[-- Attachment #2: drivers_char_rtc.c.diff --]
[-- Type: text/plain, Size: 427 bytes --]

diff -ruN dist-2.4.13+patches/drivers/char/rtc.c linux-2.4/drivers/char/rtc.c
--- dist-2.4.13+patches/drivers/char/rtc.c	Mon Oct  1 16:43:52 2001
+++ linux-2.4/drivers/char/rtc.c	Mon Oct 29 11:07:42 2001
@@ -560,7 +560,7 @@
 	spin_lock_irq(&rtc_lock);
 	tmp = CMOS_READ(RTC_CONTROL);
 	tmp &=  ~RTC_PIE;
-	tmp &=  ~RTC_AIE;
+	//tmp &=  ~RTC_AIE;
 	tmp &=  ~RTC_UIE;
 	CMOS_WRITE(tmp, RTC_CONTROL);
 	CMOS_READ(RTC_INTR_FLAGS);

             reply	other threads:[~2001-10-31 21:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-31 22:08 Tim Hockin [this message]
2001-10-31 22:13 ` [PATCH] don't reset alarm interrupt on RTC Patrick Mochel
2001-10-31 22:34   ` Tim Hockin

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=3BE07669.5FF78E63@sun.com \
    --to=thockin@sun.com \
    --cc=alan@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=p_gortmaker@yahoo.com \
    --cc=torvalds@transmeta.com \
    /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.