mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Ingo Molnar <mingo@elte.hu>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	linux-kernel@vger.kernel.org,
	Thomas Gleixner <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>
Subject: [PATCH] x86: disable hpet legacy replacement for kdump
Date: Mon, 03 Dec 2007 01:40:34 +0900	[thread overview]
Message-ID: <8763zhrqwt.fsf_-_@duaron.myhome.or.jp> (raw)
In-Reply-To: <87sl2s4ran.fsf@duaron.myhome.or.jp> (OGAWA Hirofumi's message of "Tue, 27 Nov 2007 06:42:40 +0900")

OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> writes:

> This seems to introduced after 2.6.23, so if possible, I'd like to fix
> before 2.6.24. What do you think the following?

The following patch fixes the kdump path. Please apply.
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>


    [PATCH] x86: disable hpet legacy replacement for kexec

Like the above patch, we should also add hpet_disable() for kdump.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
---

 arch/x86/kernel/crash.c |    4 ++++
 1 file changed, 4 insertions(+)

diff -puN arch/x86/kernel/crash.c~kdump-need-to-disable-hpet arch/x86/kernel/crash.c
--- linux-2.6/arch/x86/kernel/crash.c~kdump-need-to-disable-hpet	2007-11-29 12:21:55.000000000 +0900
+++ linux-2.6-hirofumi/arch/x86/kernel/crash.c	2007-11-29 12:34:21.000000000 +0900
@@ -22,6 +22,7 @@
 #include <asm/nmi.h>
 #include <asm/hw_irq.h>
 #include <asm/apic.h>
+#include <asm/hpet.h>
 #include <linux/kdebug.h>
 #include <asm/smp.h>
 
@@ -140,5 +141,8 @@ void machine_crash_shutdown(struct pt_re
 #if defined(CONFIG_X86_IO_APIC)
 	disable_IO_APIC();
 #endif
+#ifdef CONFIG_HPET_TIMER
+	hpet_disable();
+#endif
 	crash_save_cpu(regs, safe_smp_processor_id());
 }
_

  parent reply	other threads:[~2007-12-02 16:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-26 19:33 [git pull] x86 arch fixes for v2.6.24 Ingo Molnar
2007-11-26 21:42 ` [PATCH] x86: disable hpet legacy replacement for kexec OGAWA Hirofumi
2007-11-26 23:03   ` Ingo Molnar
2007-11-27 18:17   ` Pallipadi, Venkatesh
2007-12-02 16:40   ` OGAWA Hirofumi [this message]
2007-12-02 16:42     ` [PATCH] x86: disable hpet legacy replacement for kdump Ingo Molnar

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=8763zhrqwt.fsf_-_@duaron.myhome.or.jp \
    --to=hirofumi@mail.parknet.co.jp \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.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

all inboxes | Powered by JetHome®