mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
watchdog.h: Drop local redefinition of actions enum
We already have enum that enumerates all the actions that a watchdog can take when hitting its timeout: WatchdogAction. Use that instead of inventing our own. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Message-Id: <ce2790634e6a1b3b6cf90462399d17bad83f0290.1504771369.git.mprivozn@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
14d53b4f4a
commit
4c7f4426c4
3 changed files with 25 additions and 38 deletions
|
@ -57,9 +57,9 @@ static void diag288_timer_expired(void *dev)
|
|||
* the BQL; reset before triggering the action to avoid races with
|
||||
* diag288 instructions. */
|
||||
switch (get_watchdog_action()) {
|
||||
case WDT_DEBUG:
|
||||
case WDT_NONE:
|
||||
case WDT_PAUSE:
|
||||
case WATCHDOG_ACTION_DEBUG:
|
||||
case WATCHDOG_ACTION_NONE:
|
||||
case WATCHDOG_ACTION_PAUSE:
|
||||
break;
|
||||
default:
|
||||
wdt_diag288_reset(dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue