aboutsummaryrefslogtreecommitdiff
path: root/drivers/platform/surface/aggregator/controller.c
diff options
context:
space:
mode:
authorLinus Torvalds <[email protected]>2024-02-04 15:25:12 +0000
committerLinus Torvalds <[email protected]>2024-02-20 09:38:05 -0800
commit944d5fe50f3f03daacfea16300e656a1691c4a23 (patch)
treec68e71fe16481d79f0e96fb47c94799a0a25920f /drivers/platform/surface/aggregator/controller.c
parentb401b621758e46812da61fa58a67c3fd8d91de0d (diff)
sched/membarrier: reduce the ability to hammer on sys_membarrier
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. Signed-off-by: Greg Kroah-Hartman <[email protected]> Reviewed-and-tested-by: Mathieu Desnoyers <[email protected]> Acked-by: Borislav Petkov <[email protected]> Fixes: 22e4ebb97582 ("membarrier: Provide expedited private command") Fixes: c5f58bd58f43 ("membarrier: Provide GLOBAL_EXPEDITED command") Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions