forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/tools/testing/selftests/powerpc/tm/tm.h
....@@ -1,14 +1,13 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright 2015, Michael Ellerman, IBM Corp.
3
- * Licensed under GPLv2.
44 */
55
66 #ifndef _SELFTESTS_POWERPC_TM_TM_H
77 #define _SELFTESTS_POWERPC_TM_TM_H
88
9
-#include <asm/tm.h>
10
-#include <asm/cputable.h>
119 #include <stdbool.h>
10
+#include <asm/tm.h>
1211
1312 #include "utils.h"
1413
....@@ -55,7 +54,8 @@
5554 static inline bool failure_is_reschedule(void)
5655 {
5756 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)
5959 return true;
6060
6161 return false;