hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/kernel/sched/sched.h
....@@ -1024,6 +1024,10 @@
10241024 struct cpuidle_state *idle_state;
10251025 int idle_state_idx;
10261026 #endif
1027
+
1028
+#if defined(CONFIG_PREEMPT_RT_BASE) && defined(CONFIG_SMP)
1029
+ int nr_pinned;
1030
+#endif
10271031 };
10281032
10291033 #ifdef CONFIG_FAIR_GROUP_SCHED
....@@ -1670,6 +1674,7 @@
16701674 #define WF_SYNC 0x01 /* Waker goes to sleep after wakeup */
16711675 #define WF_FORK 0x02 /* Child wakeup after fork */
16721676 #define WF_MIGRATED 0x4 /* Internal use, task got migrated */
1677
+#define WF_LOCK_SLEEPER 0x08 /* wakeup spinlock "sleeper" */
16731678
16741679 /*
16751680 * To aid in avoiding the subversion of "niceness" due to uneven distribution
....@@ -1889,6 +1894,15 @@
18891894 extern void resched_curr(struct rq *rq);
18901895 extern void resched_cpu(int cpu);
18911896
1897
+#ifdef CONFIG_PREEMPT_LAZY
1898
+extern void resched_curr_lazy(struct rq *rq);
1899
+#else
1900
+static inline void resched_curr_lazy(struct rq *rq)
1901
+{
1902
+ resched_curr(rq);
1903
+}
1904
+#endif
1905
+
18921906 extern struct rt_bandwidth def_rt_bandwidth;
18931907 extern void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime);
18941908