Skip to content
Closed
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
6 changes: 5 additions & 1 deletion drivers/pmdomain/apple/pmp-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/jiffies.h>
#include <linux/kernel_stat.h>
#include <linux/kstrtox.h>
#include <linux/ktime.h>
#include <linux/math64.h>
Expand Down Expand Up @@ -1701,7 +1702,10 @@ static void j613_floor_sample_cpus(struct j613_floor *f, u64 period,
if (!cpu_online(cpu))
f->cpu_wall[cpu] = 0;
for_each_online_cpu(cpu) {
u64 wall, idle = get_cpu_idle_time(cpu, &wall, 0);
u64 wall, idle = get_cpu_idle_time_us(cpu, NULL);

/* As get_cpu_idle_time(cpu, &wall, 0), which needs CONFIG_CPU_FREQ */
idle += get_cpu_iowait_time_us(cpu, &wall);

/* A CPU unseen for many periods (hotplug, long delay) is skipped once. */
if (f->primed && f->cpu_wall[cpu] && wall > f->cpu_wall[cpu] &&
Expand Down