public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3 v2] x86: Remove old nmi_watchdog
@ 2010-11-23 19:32 Don Zickus
  2010-11-23 19:32 ` [PATCH 1/3] x86, NMI: Remove do_nmi_callback logic Don Zickus
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Don Zickus @ 2010-11-23 19:32 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: fweisbec, gorcunov, LKML, yinghai, Don Zickus

Ingo asked me to remove the old nmi_watchdog to minimize the amount of
code duplication we have to do for recent fixes.  All the functionality
needed by the old nmi watchdog should be available in perf now.

This is done in two parts.  The first part is simply remove the old code
and leave stubs for the functions that were removed.  This mimics the
behaviour of the new nmi watchdog.

The second parts removes all the stub functions, which is probably a
little more intrusive, but basically dead code anyway.

The only small piece left is the perf counter reservation code.  That can't
be removed until oprofile is modified to sit on top of perf (if that is
possible).

Compile tested for 32/64 bit with the lockup detector turned on and off.
Tested on 32/64 bit machines to make sure they still boot properly.

NOTE:  This patch will clash with my nmi rewrite patch series.  I don't
which patch series will go in first.  I can refresh either one once one
of them is merged.

Don Zickus (3):
  x86, NMI: Remove do_nmi_callback logic
  x86, nmi_watchdog:  remove the old nmi_watchdog
  x86, nmi_watchdog: remove all stub function calls from old
    nmi_watchdog

 Documentation/kernel-parameters.txt    |   10 +-
 arch/x86/include/asm/nmi.h             |   51 ---
 arch/x86/include/asm/smpboot_hooks.h   |    1 -
 arch/x86/include/asm/timer.h           |    6 -
 arch/x86/kernel/apic/Makefile          |    5 +-
 arch/x86/kernel/apic/apic.c            |   15 +-
 arch/x86/kernel/apic/hw_nmi.c          |   27 +-
 arch/x86/kernel/apic/io_apic.c         |   46 ---
 arch/x86/kernel/apic/nmi.c             |  567 ----------------------------
 arch/x86/kernel/cpu/perf_event.c       |    9 -
 arch/x86/kernel/cpu/perfctr-watchdog.c |  642 --------------------------------
 arch/x86/kernel/smpboot.c              |   11 -
 arch/x86/kernel/time.c                 |   18 -
 arch/x86/kernel/traps.c                |   26 +-
 arch/x86/oprofile/nmi_timer_int.c      |    3 -
 drivers/acpi/acpica/nsinit.c           |    2 -
 drivers/watchdog/hpwdt.c               |    7 +-
 include/linux/nmi.h                    |    4 -
 kernel/sysctl.c                        |    9 +-
 kernel/sysctl_binary.c                 |    1 -
 kernel/watchdog.c                      |    2 +
 21 files changed, 29 insertions(+), 1433 deletions(-)
 delete mode 100644 arch/x86/kernel/apic/nmi.c

-- 
1.7.3.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-11-24 18:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-23 19:32 [PATCH 0/3 v2] x86: Remove old nmi_watchdog Don Zickus
2010-11-23 19:32 ` [PATCH 1/3] x86, NMI: Remove do_nmi_callback logic Don Zickus
2010-11-23 19:32 ` [PATCH 2/3] x86, nmi_watchdog: remove the old nmi_watchdog Don Zickus
2010-11-24  3:23   ` Yinghai Lu
2010-11-24 14:08     ` Don Zickus
2010-11-24 18:12       ` Yinghai
2010-11-23 19:32 ` [PATCH 3/3] x86, nmi_watchdog: remove all stub function calls from " Don Zickus
2010-11-23 21:49 ` [PATCH 0/3 v2] x86: Remove " Cyrill Gorcunov
2010-11-24 14:03   ` Don Zickus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox