diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2016-06-28 12:18:24 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-30 11:54:40 +0200 |
commit | d79313303181d357d293453fb8486bdc87bfd2f4 (patch) | |
tree | 275cae8d173c2fdec0c95b9a797cb1ddad62f266 /drivers/cpufreq | |
parent | bpf: minor cleanups on fd maps and helpers (diff) | |
download | linux-d79313303181d357d293453fb8486bdc87bfd2f4.tar.xz linux-d79313303181d357d293453fb8486bdc87bfd2f4.zip |
bpf, trace: fetch current cpu only once
We currently have two invocations, which is unnecessary. Fetch it only
once and use the smp_processor_id() variant, so we also get preemption
checks along with it when DEBUG_PREEMPT is set.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/cpufreq')
0 files changed, 0 insertions, 0 deletions