From 7b05403f0da5d921601646e0b181435fd5034f4b Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 4 Feb 2024 09:14:23 -0800 Subject: [PATCH] lsclocks: use clock id from clock_getcpuclockid in add_cpu_clock Fixes #2761 Signed-off-by: Alan Coopersmith --- misc-utils/lsclocks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/misc-utils/lsclocks.c b/misc-utils/lsclocks.c index b2bacdb29e..867f860d5b 100644 --- a/misc-utils/lsclocks.c +++ b/misc-utils/lsclocks.c @@ -504,6 +504,7 @@ static void add_cpu_clock(struct libscols_table *tb, struct clockinfo clockinfo = { .type = CT_CPU, + .id = clockid, .name = name, .no_id = true, }; -- 2.47.3