diff options
author | 2024-05-13 14:40:35 +0300 | |
---|---|---|
committer | 2024-06-23 09:53:33 +0300 | |
commit | 0199e6392e067299ece25863abd7453e4823f13b (patch) | |
tree | bb3a1b63512865f5a0db2dbc39b7e4949d9a80ea /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | accel/habanalabs: print timestamp of last PQ heartbeat on EQ heartbeat failure (diff) | |
download | wireguard-linux-0199e6392e067299ece25863abd7453e4823f13b.tar.xz wireguard-linux-0199e6392e067299ece25863abd7453e4823f13b.zip |
accel/habanalabs: move heartbeat work initialization to early init
The device heartbeat work is currently initialized at
device_heartbeat_schedule() which is called at the end of
hl_device_init().
However hl_device_init() can fail at a previous step, and in such a
case, a subsequent call to hl_device_fini() will lead to calling
cleanup_resources() and accessing this work uninitialized.
As there is no real need to re-initialize this work every time it is
rescheduled, move this initialization to device_early_init() to be done
once and early enough.
Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Ofir Bitton <obitton@habana.ai>
Signed-off-by: Ofir Bitton <obitton@habana.ai>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions