mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 22:03:17 +01:00
sched/isolation: Split out new CONFIG_CPU_ISOLATION=y config from CONFIG_NO_HZ_FULL
Split the housekeeping config from CONFIG_NO_HZ_FULL. This way we finally separate the isolation code from NOHZ. Although a dependency to CONFIG_NO_HZ_FULL remains for now, while the housekeeping code still deals with NOHZ internals. Signed-off-by: Frederic Weisbecker <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Cc: Chris Metcalf <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Luiz Capitulino <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul E. McKenney <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Wanpeng Li <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
1 parent
204c083a00
commit
5c4991e24c
3 files changed
+12
-4
No files matched your search
@@ -5,7 +5,7 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/tick.h>
|
||||
|
||||
#ifdef CONFIG_NO_HZ_FULL
|
||||
#ifdef CONFIG_CPU_ISOLATION
|
||||
DECLARE_STATIC_KEY_FALSE(housekeeping_overriden);
|
||||
extern int housekeeping_any_cpu(void);
|
||||
extern const struct cpumask *housekeeping_cpumask(void);
|
||||
@@ -27,11 +27,11 @@ static inline const struct cpumask *housekeeping_cpumask(void)
|
||||
|
||||
static inline void housekeeping_affine(struct task_struct *t) { }
|
||||
static inline void housekeeping_init(void) { }
|
||||
#endif /* CONFIG_NO_HZ_FULL */
|
||||
#endif /* CONFIG_CPU_ISOLATION */
|
||||
|
||||
static inline bool housekeeping_cpu(int cpu)
|
||||
{
|
||||
#ifdef CONFIG_NO_HZ_FULL
|
||||
#ifdef CONFIG_CPU_ISOLATION
|
||||
if (static_branch_unlikely(&housekeeping_overriden))
|
||||
return housekeeping_test_cpu(cpu);
|
||||
#endif
|
||||
|
||||
@@ -472,6 +472,14 @@ config TASK_IO_ACCOUNTING
|
||||
|
||||
endmenu # "CPU/Task time and stats accounting"
|
||||
|
||||
config CPU_ISOLATION
|
||||
bool "CPU isolation"
|
||||
depends on NO_HZ_FULL
|
||||
help
|
||||
Make sure that CPUs running critical tasks are not disturbed by
|
||||
any source of "noise" such as unbound workqueues, timers, kthreads...
|
||||
Unbound jobs get offloaded to housekeeping CPUs.
|
||||
|
||||
source "kernel/rcu/Kconfig"
|
||||
|
||||
config BUILD_BIN2C
|
||||
|
||||
@@ -26,4 +26,4 @@ obj-$(CONFIG_CGROUP_CPUACCT) += cpuacct.o
|
||||
obj-$(CONFIG_CPU_FREQ) += cpufreq.o
|
||||
obj-$(CONFIG_CPU_FREQ_GOV_SCHEDUTIL) += cpufreq_schedutil.o
|
||||
obj-$(CONFIG_MEMBARRIER) += membarrier.o
|
||||
obj-$(CONFIG_NO_HZ_FULL) += isolation.o
|
||||
obj-$(CONFIG_CPU_ISOLATION) += isolation.o
|
||||
Reference in new issue
Block a user