diff options
| author | Thomas Gleixner <[email protected]> | 2020-02-24 14:01:42 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-02-25 00:20:09 +0000 |
| commit | 37e1d9202225635772b32e340294208367279c2b (patch) | |
| tree | fa994e5de8abf9a7007d9a11d67460b78cdefa2a /scripts/bpf_helpers_doc.py | |
| parent | bpf: Provide bpf_prog_run_pin_on_cpu() helper (diff) | |
| download | kernel-37e1d9202225635772b32e340294208367279c2b.tar.gz kernel-37e1d9202225635772b32e340294208367279c2b.zip | |
bpf: Replace cant_sleep() with cant_migrate()
As already discussed in the previous change which introduced
BPF_RUN_PROG_PIN_ON_CPU() BPF only requires to disable migration to
guarantee per CPUness.
If RT substitutes the preempt disable based migration protection then the
cant_sleep() check will obviously trigger as preemption is not disabled.
Replace it by cant_migrate() which maps to cant_sleep() on a non RT kernel
and will verify that migration is disabled on a full RT kernel.
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 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions
