aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2020-02-24 15:01:40 +0100
committerAlexei Starovoitov <[email protected]>2020-02-24 16:18:20 -0800
commit569de905ebc30b9c61be7aa557403aeb5a9141a4 (patch)
treebb943982c132511cddfc78844fa10bfbb35dc50c /tools/perf/scripts/python
parent8a37963c7ac9ecb7f86f8ebda020e3f8d6d7b8a0 (diff)
bpf: Dont iterate over possible CPUs with interrupts disabled
pcpu_freelist_populate() is disabling interrupts and then iterates over the possible CPUs. The reason why this disables interrupts is to silence lockdep because the invoked ___pcpu_freelist_push() takes spin locks. Neither the interrupt disabling nor the locking are required in this function because it's called during initialization and the resulting map is not yet visible to anything. Split out the actual push assignement into an inline, call it from the loop and remove the interrupt disable. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions