File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -883,8 +883,13 @@ static cpumask_t mce_missing_cpus = CPU_MASK_ALL;
883
883
/*
884
884
* Check if a timeout waiting for other CPUs happened.
885
885
*/
886
- static int mce_timed_out (u64 * t , const char * msg )
886
+ static noinstr int mce_timed_out (u64 * t , const char * msg )
887
887
{
888
+ int ret = 0 ;
889
+
890
+ /* Enable instrumentation around calls to external facilities */
891
+ instrumentation_begin ();
892
+
888
893
/*
889
894
* The others already did panic for some reason.
890
895
* Bail out like in a timeout.
@@ -903,12 +908,17 @@ static int mce_timed_out(u64 *t, const char *msg)
903
908
cpumask_pr_args (& mce_missing_cpus ));
904
909
mce_panic (msg , NULL , NULL );
905
910
}
906
- return 1 ;
911
+ ret = 1 ;
912
+ goto out ;
907
913
}
908
914
* t -= SPINUNIT ;
915
+
909
916
out :
910
917
touch_nmi_watchdog ();
911
- return 0 ;
918
+
919
+ instrumentation_end ();
920
+
921
+ return ret ;
912
922
}
913
923
914
924
/*
You can’t perform that action at this time.
0 commit comments