diff options
| author | Daniel Borkmann <daniel@iogearbox.net> | 2016-06-28 12:18:24 +0200 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2022-04-19 00:51:45 +0300 |
| commit | d07f0b4132a0bd1dff3a21863ad81279620693fc (patch) | |
| tree | 5b2662ea942fb47c28a0a80c91574cc9f1ea130e /net/compat.c | |
| parent | fc6c6256bb108dde5c7f533d6dda2e9044a7283c (diff) | |
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 'net/compat.c')
0 files changed, 0 insertions, 0 deletions
