From: Cyrill Gorcunov <gorcunov@gmail.com>
To: Henrik Kretzschmar <henne@nachtwindheim.de>
Cc: mingo@elte.hu, tglx@linutronix.de, hpa@zytor.com, x86@kernel.org,
linux-kernel@vger.kernel.org, Don Zickus <dzickus@redhat.com>
Subject: Re: [PATCH 4/7] x86: remove enable_NMI_through_LVT0() entirely
Date: Thu, 03 Mar 2011 23:54:08 +0300 [thread overview]
Message-ID: <4D6FFFF0.9030402@gmail.com> (raw)
In-Reply-To: <1299182701-8591-4-git-send-email-henne@nachtwindheim.de>
On 03/03/2011 11:04 PM, Henrik Kretzschmar wrote:
> This function is not used anywhere in the tree,
> since commit 072b198a4ad48bd722ec6d203d65422a4698eae7
> so it can be removed.
>
> Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
> ---
> arch/x86/include/asm/apic.h | 1 -
> arch/x86/kernel/apic/apic.c | 17 -----------------
> 2 files changed, 0 insertions(+), 18 deletions(-)
>
> diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h
> index 6d74dd37..f17d7c5 100644
> --- a/arch/x86/include/asm/apic.h
> +++ b/arch/x86/include/asm/apic.h
> @@ -238,7 +238,6 @@ void register_lapic_address(unsigned long address);
> extern void setup_boot_APIC_clock(void);
> extern void setup_secondary_APIC_clock(void);
> extern int APIC_init_uniprocessor(void);
> -extern void enable_NMI_through_LVT0(void);
> extern int apic_force_enable(unsigned long addr) __init;
>
> /*
> diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
> index 5177aaa..a0e9c1f 100644
> --- a/arch/x86/kernel/apic/apic.c
> +++ b/arch/x86/kernel/apic/apic.c
> @@ -292,23 +292,6 @@ u64 native_apic_icr_read(void)
> return icr1 | ((u64)icr2 << 32);
> }
>
> -/**
> - * enable_NMI_through_LVT0 - enable NMI through local vector table 0
> - */
> -void __cpuinit enable_NMI_through_LVT0(void)
> -{
> - unsigned int v;
> -
> - /* unmask and set to NMI */
> - v = APIC_DM_NMI;
> -
> - /* Level triggered for 82489DX (32bit mode) */
> - if (!lapic_is_integrated())
> - v |= APIC_LVT_LEVEL_TRIGGER;
> -
> - apic_write(APIC_LVT0, v);
> -}
> -
> #ifdef CONFIG_X86_32
> /**
> * get_physical_broadcast - Get number of physical broadcast IDs
Seems to be a leftover since nmi-watchdog via io-apic. Good for me.
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
CC'ing Don.
--
Cyrill
next prev parent reply other threads:[~2011-03-03 20:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-03 20:04 [PATCH 1/7] x86: remove superflous goal definition of tsc_sync Henrik Kretzschmar
2011-03-03 20:04 ` [PATCH 2/7] x86: make some apic symbols init Henrik Kretzschmar
2011-03-03 21:19 ` Cyrill Gorcunov
2011-03-04 9:09 ` Henrik Kretzschmar
2011-03-03 20:04 ` [PATCH 3/7] x86: make apic_disable() static and init Henrik Kretzschmar
2011-03-03 20:45 ` Cyrill Gorcunov
2011-03-03 20:04 ` [PATCH 4/7] x86: remove enable_NMI_through_LVT0() entirely Henrik Kretzschmar
2011-03-03 20:54 ` Cyrill Gorcunov [this message]
2011-03-03 20:04 ` [PATCH 5/7] x86: remove ancient crufty prototype Henrik Kretzschmar
2011-03-03 21:03 ` Cyrill Gorcunov
2011-03-03 20:05 ` [PATCH 6/7] x86: remove unneeded prototypes Henrik Kretzschmar
2011-03-03 21:13 ` Cyrill Gorcunov
2011-03-03 20:05 ` [PATCH 7/7] x86: fix section of a disable_apic_timer Henrik Kretzschmar
2011-03-03 21:18 ` Cyrill Gorcunov
2011-03-04 9:06 ` Henrik Kretzschmar
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=4D6FFFF0.9030402@gmail.com \
--to=gorcunov@gmail.com \
--cc=dzickus@redhat.com \
--cc=henne@nachtwindheim.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=x86@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.