+119
−94
+33
−18
Loading
By storing perf values in a union all the writes and reads can be done atomically, removing the need for some concurrency protections. While making this change, also drop the cached frequency values, using inline helpers to calculate them on demand from perf value. Reviewed-by:Gautham R. Shenoy <gautham.shenoy@amd.com> Reviewed-by:
Dhananjay Ugwekar <dhananjay.ugwekar@amd.com> Signed-off-by:
Mario Limonciello <mario.limonciello@amd.com>