Re: [RFC PATCH v3 03/10] PM: Introduce an Energy Model management framework

From: Peter Zijlstra
Date: Tue Jun 19 2018 - 07:31:40 EST


On Mon, May 21, 2018 at 03:24:58PM +0100, Quentin Perret wrote:
> + read_lock_irqsave(&em_data_lock, flags);
> + for_each_cpu(cpu, cpu_possible_mask) {

I know we're likely to only use this on small systems, but this pattern
is a very bad, Please look at alternatives.