+28
−33
Loading
Use the observation that one loop is sufficient to compute the average of an array of values and their variance to eliminate one of the loops from get_typical_interval(). While at it, make get_typical_interval() consistently use u64 as the 64-bit unsigned integer data type and rearrange some white space and the declarations of local variables in it (to make them follow the reverse X-mas tree pattern). No intentional functional impact. Signed-off-by:Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by:
Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Reviewed-by:
Christian Loehle <christian.loehle@arm.com> Tested-by:
Christian Loehle <christian.loehle@arm.com> Tested-by:
Aboorva Devarajan <aboorvad@linux.ibm.com> Link: https://patch.msgid.link/3339073.aeNJFYEL58@rjwysocki.net