Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e27a3f4e authored by Alexander Grund's avatar Alexander Grund
Browse files

Update cpu_time_stat for changed API

Change-Id: I12366a069c479ca0ea6f7aecf00f208c9edffbd6
parent 6dc1754a
Loading
Loading
Loading
Loading
+20 −20
Original line number Diff line number Diff line
@@ -118,16 +118,16 @@ static int show_cpu_time_stat(struct seq_file *p, void *v)
	sum += arch_irq_stat();

	seq_puts(p, "cpu ");
	seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(user));
	seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(nice));
	seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(system));
	seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(idle));
	seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(iowait));
	seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(irq));
	seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(softirq));
	seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(steal));
	seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(guest));
	seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(guest_nice));
	seq_put_decimal_ull(p, " ", cputime64_to_clock_t(user));
	seq_put_decimal_ull(p, " ", cputime64_to_clock_t(nice));
	seq_put_decimal_ull(p, " ", cputime64_to_clock_t(system));
	seq_put_decimal_ull(p, " ", cputime64_to_clock_t(idle));
	seq_put_decimal_ull(p, " ", cputime64_to_clock_t(iowait));
	seq_put_decimal_ull(p, " ", cputime64_to_clock_t(irq));
	seq_put_decimal_ull(p, " ", cputime64_to_clock_t(softirq));
	seq_put_decimal_ull(p, " ", cputime64_to_clock_t(steal));
	seq_put_decimal_ull(p, " ", cputime64_to_clock_t(guest));
	seq_put_decimal_ull(p, " ", cputime64_to_clock_t(guest_nice));
	seq_putc(p, '\n');

	for_each_possible_cpu(i) {
@@ -143,16 +143,16 @@ static int show_cpu_time_stat(struct seq_file *p, void *v)
		guest = kcpustat_cpu(i).cpustat[CPUTIME_GUEST];
		guest_nice = kcpustat_cpu(i).cpustat[CPUTIME_GUEST_NICE];
		seq_printf(p, "cpu%d", i);
		seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(user));
		seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(nice));
		seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(system));
		seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(idle));
		seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(iowait));
		seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(irq));
		seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(softirq));
		seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(steal));
		seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(guest));
		seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(guest_nice));
		seq_put_decimal_ull(p, " ", cputime64_to_clock_t(user));
		seq_put_decimal_ull(p, " ", cputime64_to_clock_t(nice));
		seq_put_decimal_ull(p, " ", cputime64_to_clock_t(system));
		seq_put_decimal_ull(p, " ", cputime64_to_clock_t(idle));
		seq_put_decimal_ull(p, " ", cputime64_to_clock_t(iowait));
		seq_put_decimal_ull(p, " ", cputime64_to_clock_t(irq));
		seq_put_decimal_ull(p, " ", cputime64_to_clock_t(softirq));
		seq_put_decimal_ull(p, " ", cputime64_to_clock_t(steal));
		seq_put_decimal_ull(p, " ", cputime64_to_clock_t(guest));
		seq_put_decimal_ull(p, " ", cputime64_to_clock_t(guest_nice));
		seq_putc(p, '\n');
	}
	return 0;