File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 37
37
#include "se_services.h"
38
38
39
39
struct metal_state _metal ;
40
+
41
+ static bool metal_active ;
40
42
static mp_sched_node_t rproc_notify_node ;
41
43
42
44
int metal_sys_init (const struct metal_init_params * params ) {
@@ -53,10 +55,13 @@ int metal_sys_init(const struct metal_init_params *params) {
53
55
#endif
54
56
55
57
metal_bus_register (& metal_generic_bus );
58
+ metal_active = true;
59
+
56
60
return 0 ;
57
61
}
58
62
59
63
void metal_sys_finish (void ) {
64
+ metal_active = false;
60
65
metal_bus_unregister (& metal_generic_bus );
61
66
}
62
67
@@ -91,6 +96,9 @@ int metal_rproc_notify(void *priv, uint32_t id) {
91
96
}
92
97
93
98
void metal_rproc_notified (void ) {
99
+ if (!metal_active ) {
100
+ return ;
101
+ }
94
102
// The remote core notified this core.
95
103
mp_sched_schedule_node (& rproc_notify_node , openamp_remoteproc_notified );
96
104
}
You can’t perform that action at this time.
0 commit comments