watchdog, hpwdt: Remove priority option for NMI callback
authorDon Zickus <dzickus@redhat.com>
Thu, 29 Mar 2012 20:11:15 +0000 (16:11 -0400)
committerIngo Molnar <mingo@kernel.org>
Wed, 25 Apr 2012 10:43:33 +0000 (12:43 +0200)
commit09ee10143658cd021d879ead61ead72a196302b6
treeb3f959e343c58f553b1b14c7f81a54b11a25b0dd
parent625056b65ee9a8b4caf42136e0c844c15e6ec54f
watchdog, hpwdt: Remove priority option for NMI callback

The NMI_UNKNOWN bucket only allows for one function to register
to it. The reason for that is because only functions which can
not determine if the NMI belongs to them or not should register
and would like to assume/swallow any NMI they see.

As a result it doesn't make sense to let more than one function
like this register.  In fact, letting a second function fail
allows us to know that more than one function is going to
swallow NMIs on the current system. This is better than silently
being ignored.

Therefore hpwdt's priority mechanism doesn't make sense any
more.  They will be always first on the NMI_UNKNOWN queue, if
they register.

Removing this parameter cleans up the code and simplifies things
for the next patch which changes how nmis are registered.

Signed-off-by: Don Zickus <dzickus@redhat.com>
Cc: Thomas Mingarelli <thomas.mingarelli@hp.com>
Cc: Wim Van Sebroeck <wim@iguana.be>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/1333051877-15755-2-git-send-email-dzickus@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/watchdog/hpwdt.c