We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1061c1 commit c6be6eaCopy full SHA for c6be6ea
drivers/hwtracing/stm/heartbeat.c
@@ -81,10 +81,8 @@ static int stm_heartbeat_init(void)
81
stm_heartbeat[i].data.type = STM_USER;
82
stm_heartbeat[i].data.link = stm_heartbeat_link;
83
stm_heartbeat[i].data.unlink = stm_heartbeat_unlink;
84
- hrtimer_init(&stm_heartbeat[i].hrtimer, CLOCK_MONOTONIC,
85
- HRTIMER_MODE_ABS);
86
- stm_heartbeat[i].hrtimer.function =
87
- stm_heartbeat_hrtimer_handler;
+ hrtimer_setup(&stm_heartbeat[i].hrtimer, stm_heartbeat_hrtimer_handler,
+ CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
88
89
ret = stm_source_register_device(NULL, &stm_heartbeat[i].data);
90
if (ret)
0 commit comments