From: Luming Yu <luming@unix-os.sc.intel.com>
To: ak@muc.de
Cc: luming.yu@intel.com, linux-kernel@vger.kernel.org
Subject: [Patch] resume PIT
Date: Wed, 9 Mar 2005 20:55:54 -0800 [thread overview]
Message-ID: <20050309205554.A29484@unix-os.sc.intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]
[PATCH] resume PIT for x86_64
Signed-off-by: Luming Yu <luming.yu@intel.com>
diff -BruN 0/arch/x86_64/kernel/i8259.c 1/arch/x86_64/kernel/i8259.c
--- 0/arch/x86_64/kernel/i8259.c 2005-03-07 23:29:42.000000000 +0800
+++ 1/arch/x86_64/kernel/i8259.c 2005-03-09 12:53:10.000000000 +0800
@@ -477,6 +477,7 @@
void call_function_interrupt(void);
void invalidate_interrupt(void);
void thermal_interrupt(void);
+void i8254_timer_resume(void);
static void setup_timer(void)
{
@@ -493,6 +494,11 @@
return 0;
}
+void i8254_timer_resume(void)
+{
+ setup_timer();
+}
+
static struct sysdev_class timer_sysclass = {
set_kset_name("timer"),
.resume = timer_resume,
diff -BruN 0/arch/x86_64/kernel/time.c 1/arch/x86_64/kernel/time.c
--- 0/arch/x86_64/kernel/time.c 2005-03-07 23:32:23.000000000 +0800
+++ 1/arch/x86_64/kernel/time.c 2005-03-09 12:53:10.000000000 +0800
@@ -46,7 +46,7 @@
#ifdef CONFIG_CPU_FREQ
static void cpufreq_delayed_get(void);
#endif
-
+extern void i8254_timer_resume(void);
extern int using_apic_timer;
DEFINE_SPINLOCK(rtc_lock);
@@ -980,6 +980,8 @@
if (vxtime.hpet_address)
hpet_reenable();
+ else
+ i8254_timer_resume();
sec = ctime + clock_cmos_diff;
write_seqlock_irqsave(&xtime_lock,flags);
[-- Attachment #2: i8254.patch --]
[-- Type: application/octet-stream, Size: 1165 bytes --]
diff -BruN 0/arch/x86_64/kernel/i8259.c 1/arch/x86_64/kernel/i8259.c
--- 0/arch/x86_64/kernel/i8259.c 2005-03-07 23:29:42.000000000 +0800
+++ 1/arch/x86_64/kernel/i8259.c 2005-03-09 12:53:10.000000000 +0800
@@ -477,6 +477,7 @@
void call_function_interrupt(void);
void invalidate_interrupt(void);
void thermal_interrupt(void);
+void i8254_timer_resume(void);
static void setup_timer(void)
{
@@ -493,6 +494,11 @@
return 0;
}
+void i8254_timer_resume(void)
+{
+ setup_timer();
+}
+
static struct sysdev_class timer_sysclass = {
set_kset_name("timer"),
.resume = timer_resume,
diff -BruN 0/arch/x86_64/kernel/time.c 1/arch/x86_64/kernel/time.c
--- 0/arch/x86_64/kernel/time.c 2005-03-07 23:32:23.000000000 +0800
+++ 1/arch/x86_64/kernel/time.c 2005-03-09 12:53:10.000000000 +0800
@@ -46,7 +46,7 @@
#ifdef CONFIG_CPU_FREQ
static void cpufreq_delayed_get(void);
#endif
-
+extern void i8254_timer_resume(void);
extern int using_apic_timer;
DEFINE_SPINLOCK(rtc_lock);
@@ -980,6 +980,8 @@
if (vxtime.hpet_address)
hpet_reenable();
+ else
+ i8254_timer_resume();
sec = ctime + clock_cmos_diff;
write_seqlock_irqsave(&xtime_lock,flags);
reply other threads:[~2005-03-10 5:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20050309205554.A29484@unix-os.sc.intel.com \
--to=luming@unix-os.sc.intel.com \
--cc=ak@muc.de \
--cc=linux-kernel@vger.kernel.org \
--cc=luming.yu@intel.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 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®