Can be squashed to new-cpu-config later.

Signed-off-by: Ralf Ramsauer <[email protected]>
---
 driver/sysfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/driver/sysfs.c b/driver/sysfs.c
index ac0b88b4..1664b5e5 100644
--- a/driver/sysfs.c
+++ b/driver/sysfs.c
@@ -96,8 +96,8 @@ static ssize_t cell_stats_show(struct kobject *kobj,
 
        for_each_cpu(cpu, &cell->cpus_assigned) {
                jailhouse_cpu = per_cpu(jailhouse_cpu_id, cpu);
-               value = jailhouse_call_arg2(JAILHOUSE_HC_CPU_GET_INFO, cpu,
-                                           code);
+               value = jailhouse_call_arg2(JAILHOUSE_HC_CPU_GET_INFO,
+                                           jailhouse_cpu, code);
                if (value > 0)
                        sum += value;
        }
-- 
2.40.1

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/20230519204033.643200-24-ralf.ramsauer%40oth-regensburg.de.

Reply via email to