linux 6.1: prjc: Fixup for PSI enabled compilation
https://gitlab.com/alfredchen/linux-prjc/-/issues/66
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user