diff options
| author | Tom Rini <[email protected]> | 2022-11-02 09:10:30 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-11-02 09:10:30 -0400 |
| commit | cca41ed3d63f462ca044e0d2d30a34d4917fc6c5 (patch) | |
| tree | 098a9c50a140c777bc21517068fe676957fb5e1e /cmd | |
| parent | ec5b8804de3938ad8b4dc51d1cdce622640a14ff (diff) | |
| parent | 50128aeb0f8bb5a2d820e4c7a6ac0bb745809fc1 (diff) | |
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-watchdog
- cyclic: get rid of (the need for) cyclic_init() (Rasmus)
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/cyclic.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/cyclic.c b/cmd/cyclic.c index c1bc556aade..97324d82405 100644 --- a/cmd/cyclic.c +++ b/cmd/cyclic.c @@ -61,10 +61,11 @@ static int do_cyclic_demo(struct cmd_tbl *cmdtp, int flag, int argc, static int do_cyclic_list(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { - struct cyclic_info *cyclic, *tmp; + struct cyclic_info *cyclic; + struct hlist_node *tmp; u64 cnt, freq; - list_for_each_entry_safe(cyclic, tmp, cyclic_get_list(), list) { + hlist_for_each_entry_safe(cyclic, tmp, cyclic_get_list(), list) { cnt = cyclic->run_cnt * 1000000ULL * 100ULL; freq = lldiv(cnt, timer_get_us() - cyclic->start_time_us); printf("function: %s, cpu-time: %lld us, frequency: %lld.%02d times/s\n", |
