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

Commit e4dca140 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cpufreq: stats: Change return type of cpufreq_stats_update() as void"

parents ae830ca7 5271c8ae
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ struct cpufreq_stats {
	unsigned int *trans_table;
};

static int cpufreq_stats_update(struct cpufreq_stats *stats)
static void cpufreq_stats_update(struct cpufreq_stats *stats)
{
	unsigned long long cur_time = get_jiffies_64();
	unsigned long flags;
@@ -36,7 +36,6 @@ static int cpufreq_stats_update(struct cpufreq_stats *stats)
	stats->time_in_state[stats->last_index] += cur_time - stats->last_time;
	stats->last_time = cur_time;
	spin_unlock_irqrestore(&cpufreq_stats_lock, flags);
	return 0;
}

static void cpufreq_stats_clear_table(struct cpufreq_stats *stats)