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

Skip to content
Commit 82a22528 authored by Robert Richter's avatar Robert Richter
Browse files

x86/oprofile: Use per_cpu() instead of __get_cpu_var()



__get_cpu_var() calls smp_processor_id(). When the cpu id is already
known, instead use per_cpu() to avoid generating the id again.

Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
parent 5e766e3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment