]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Use migrate_disable/enabe() in trampoline code.
authorDavid Miller <davem@davemloft.net>
Mon, 24 Feb 2020 14:01:45 +0000 (15:01 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 25 Feb 2020 00:20:09 +0000 (16:20 -0800)
commitba748e6d27884a5a909368574f58d0087eafb8d6
tree3acf6c839448a780cf43252693653245f3cf51eb
parent54e2c575298ed68c261e1596215104c7fb2ad9c9
bpf: Use migrate_disable/enabe() in trampoline code.

Instead of preemption disable/enable to reflect the purpose. This allows
PREEMPT_RT to substitute it with an actual migration disable
implementation. On non RT kernels this is still mapped to
preempt_disable/enable().

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200224145643.891428873@linutronix.de
kernel/bpf/trampoline.c