From d03c960e1854c398e5204204f834424fe1583356 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Tue, 13 Dec 2022 18:37:43 +0100 Subject: [PATCH] linux 6.1: prjc: Fixup for PSI enabled compilation https://gitlab.com/alfredchen/linux-prjc/-/issues/66 --- linux-tkg-patches/6.1/0009-prjc_v6.1-r0.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/linux-tkg-patches/6.1/0009-prjc_v6.1-r0.patch b/linux-tkg-patches/6.1/0009-prjc_v6.1-r0.patch index e4c91c4..8e5671d 100644 --- a/linux-tkg-patches/6.1/0009-prjc_v6.1-r0.patch +++ b/linux-tkg-patches/6.1/0009-prjc_v6.1-r0.patch @@ -10074,3 +10074,21 @@ index a2d301f58ced..2ccdede8585c 100644 }; struct wakeup_test_data *x = data; +diff --git a/kernel/sched/alt_sched.h b/kernel/sched/alt_sched.h +index 93ff3bddd36f85c67a3130a68ed67e2525513353..a00bc84b93b2c8789d4798a2900299fdd39a2e58 100644 +--- a/kernel/sched/alt_sched.h ++++ b/kernel/sched/alt_sched.h +@@ -387,6 +387,13 @@ task_rq_unlock(struct rq *rq, struct task_struct *p, struct rq_flags *rf) + raw_spin_unlock_irqrestore(&p->pi_lock, rf->flags); + } + ++static inline void ++rq_lock_irq(struct rq *rq, struct rq_flags *rf) ++ __acquires(rq->lock) ++{ ++ raw_spin_lock_irq(&rq->lock); ++} ++ + static inline void + rq_lock(struct rq *rq, struct rq_flags *rf) + __acquires(rq->lock)