sched.h (a5a25b32c08a31c03258ec4960bec26caaf76e9a) | sched.h (e34e0131fea1b0f63c2105a1958c94af2ee90f4d) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Scheduler internal types and methods: 4 */ 5#ifndef _KERNEL_SCHED_SCHED_H 6#define _KERNEL_SCHED_SCHED_H 7 8#include <linux/sched/affinity.h> --- 1486 unchanged lines hidden (view full) --- 1495static inline bool sched_group_cookie_match(struct rq *rq, 1496 struct task_struct *p, 1497 struct sched_group *group) 1498{ 1499 return true; 1500} 1501 1502#endif /* !CONFIG_SCHED_CORE */ | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Scheduler internal types and methods: 4 */ 5#ifndef _KERNEL_SCHED_SCHED_H 6#define _KERNEL_SCHED_SCHED_H 7 8#include <linux/sched/affinity.h> --- 1486 unchanged lines hidden (view full) --- 1495static inline bool sched_group_cookie_match(struct rq *rq, 1496 struct task_struct *p, 1497 struct sched_group *group) 1498{ 1499 return true; 1500} 1501 1502#endif /* !CONFIG_SCHED_CORE */ |
1503#ifdef CONFIG_RT_GROUP_SCHED 1504# ifdef CONFIG_RT_GROUP_SCHED_DEFAULT_DISABLED 1505DECLARE_STATIC_KEY_FALSE(rt_group_sched); 1506static inline bool rt_group_sched_enabled(void) 1507{ 1508 return static_branch_unlikely(&rt_group_sched); 1509} 1510# else 1511DECLARE_STATIC_KEY_TRUE(rt_group_sched); 1512static inline bool rt_group_sched_enabled(void) 1513{ 1514 return static_branch_likely(&rt_group_sched); 1515} 1516# endif /* CONFIG_RT_GROUP_SCHED_DEFAULT_DISABLED */ 1517#else 1518# define rt_group_sched_enabled() false 1519#endif /* CONFIG_RT_GROUP_SCHED */ |
|
1503 1504static inline void lockdep_assert_rq_held(struct rq *rq) 1505{ 1506 lockdep_assert_held(__rq_lockp(rq)); 1507} 1508 1509extern void raw_spin_rq_lock_nested(struct rq *rq, int subclass); 1510extern bool raw_spin_rq_trylock(struct rq *rq); --- 2456 unchanged lines hidden --- | 1520 1521static inline void lockdep_assert_rq_held(struct rq *rq) 1522{ 1523 lockdep_assert_held(__rq_lockp(rq)); 1524} 1525 1526extern void raw_spin_rq_lock_nested(struct rq *rq, int subclass); 1527extern bool raw_spin_rq_trylock(struct rq *rq); --- 2456 unchanged lines hidden --- |