.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright 2015, Michael Ellerman, IBM Corp. |
---|
3 | | - * Licensed under GPLv2. |
---|
4 | 4 | */ |
---|
5 | 5 | |
---|
6 | 6 | #ifndef _SELFTESTS_POWERPC_TM_TM_H |
---|
7 | 7 | #define _SELFTESTS_POWERPC_TM_TM_H |
---|
8 | 8 | |
---|
9 | | -#include <asm/tm.h> |
---|
10 | | -#include <asm/cputable.h> |
---|
11 | 9 | #include <stdbool.h> |
---|
| 10 | +#include <asm/tm.h> |
---|
12 | 11 | |
---|
13 | 12 | #include "utils.h" |
---|
14 | 13 | |
---|
.. | .. |
---|
55 | 54 | static inline bool failure_is_reschedule(void) |
---|
56 | 55 | { |
---|
57 | 56 | if ((failure_code() & TM_CAUSE_RESCHED) == TM_CAUSE_RESCHED || |
---|
58 | | - (failure_code() & TM_CAUSE_KVM_RESCHED) == TM_CAUSE_KVM_RESCHED) |
---|
| 57 | + (failure_code() & TM_CAUSE_KVM_RESCHED) == TM_CAUSE_KVM_RESCHED || |
---|
| 58 | + (failure_code() & TM_CAUSE_KVM_FAC_UNAV) == TM_CAUSE_KVM_FAC_UNAV) |
---|
59 | 59 | return true; |
---|
60 | 60 | |
---|
61 | 61 | return false; |
---|