Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sw/nic/gpuagent/api/smi/gimamdsmi/smi_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,11 @@ watch_timer_cb_ (event::timer_t *timer)
aga_task_spec_t task_spec = {};
static uint16_t timer_ticks = 0;

// only start updating watch fields once at least one client has subscribed
// to a watch group
if (!g_smi_state.any_watch_group_subscribed()) {
return;
}
// get latest values of all watch fields
g_smi_state.watcher_update_watch_db(&task_spec.watch_db);

Expand Down
Loading