kernel_samsung_a53x/kernel/sched
Linus Torvalds b22fc42973 sched/membarrier: reduce the ability to hammer on sys_membarrier
commit 944d5fe50f3f03daacfea16300e656a1691c4a23 upstream.

On some systems, sys_membarrier can be very expensive, causing overall
slowdowns for everything.  So put a lock on the path in order to
serialize the accesses to prevent the ability for this to be called at
too high of a frequency and saturate the machine.

Reviewed-and-tested-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Acked-by: Borislav Petkov <bp@alien8.de>
Fixes: 22e4ebb97582 ("membarrier: Provide expedited private command")
Fixes: c5f58bd58f43 ("membarrier: Provide GLOBAL_EXPEDITED command")
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[ converted to explicit mutex_*() calls - cleanup.h is not in this stable
  branch - gregkh ]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 12:13:39 +01:00
..
ems Revert "kernel: ems/ego: Allow CPU frequency changes to be amended before they're set" 2024-11-18 07:48:15 +01:00
autogroup.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
autogroup.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
completion.c sched/completion: Expose wait_for_common*() to drivers 2024-11-17 17:45:08 +01:00
core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpuacct.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpudeadline.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpudeadline.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq_schedutil.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpupri.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpupri.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cputime.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
deadline.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fair.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
features.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
idle.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
isolation.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
loadavg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
membarrier.c sched/membarrier: reduce the ability to hammer on sys_membarrier 2024-11-18 12:13:39 +01:00
pelt.c kernel: sched: Provide more PELT half-life options 2024-11-17 17:41:17 +01:00
pelt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sched-pelt.h kernel: sched: Provide more PELT half-life options 2024-11-17 17:41:17 +01:00
sched.h sched/uclamp: Fix incorrect uclamp.latency_sensitive setting 2024-11-17 17:38:14 +01:00
sec_mpam.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sec_mpam_cpbm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sec_mpam_sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sec_mpam_sysfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stats.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stats.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stop_task.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
swait.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
topology.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wait.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wait_bit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00