mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-03-03 18:28:01 +01:00
Tasks that have all their allowed CPUs offline don't want their affinity to fallback on either nohz_full CPUs or on domain isolated CPUs. And since nohz_full implies domain isolation, checking the latter is enough to verify both. Therefore exclude domain isolation from fallback task affinity. Signed-off-by: Frederic Weisbecker <frederic@kernel.org> Acked-by: Waiman Long <longman@redhat.com> Cc: Marco Crivellari <marco.crivellari@suse.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Tejun Heo <tj@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Waiman Long <longman@redhat.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: linux-arm-kernel@lists.infradead.org
47 lines
1.1 KiB
C
47 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_MMU_CONTEXT_H
|
|
#define _LINUX_MMU_CONTEXT_H
|
|
|
|
#include <asm/mmu_context.h>
|
|
#include <asm/mmu.h>
|
|
|
|
/* Architectures that care about IRQ state in switch_mm can override this. */
|
|
#ifndef switch_mm_irqs_off
|
|
# define switch_mm_irqs_off switch_mm
|
|
#endif
|
|
|
|
#ifndef leave_mm
|
|
static inline void leave_mm(void) { }
|
|
#endif
|
|
|
|
/*
|
|
* CPUs that are capable of running user task @p. Must contain at least one
|
|
* active CPU. It is assumed that the kernel can run on all CPUs, so calling
|
|
* this for a kernel thread is pointless.
|
|
*
|
|
* By default, we assume a sane, homogeneous system.
|
|
*/
|
|
#ifndef task_cpu_possible_mask
|
|
# define task_cpu_possible_mask(p) cpu_possible_mask
|
|
# define task_cpu_possible(cpu, p) true
|
|
# define task_cpu_fallback_mask(p) housekeeping_cpumask(HK_TYPE_DOMAIN)
|
|
#else
|
|
# define task_cpu_possible(cpu, p) cpumask_test_cpu((cpu), task_cpu_possible_mask(p))
|
|
#endif
|
|
|
|
#ifndef mm_untag_mask
|
|
static inline unsigned long mm_untag_mask(struct mm_struct *mm)
|
|
{
|
|
return -1UL;
|
|
}
|
|
#endif
|
|
|
|
#ifndef arch_pgtable_dma_compat
|
|
static inline bool arch_pgtable_dma_compat(struct mm_struct *mm)
|
|
{
|
|
return true;
|
|
}
|
|
#endif
|
|
|
|
#endif
|