Fix: Include linux/sched/rt.h for kernels v3.9 to v3.14
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 10 Jan 2024 01:55:58 +0000 (20:55 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 10 Jan 2024 01:57:05 +0000 (20:57 -0500)
commitc63b106760cc99aa857caa104a2d24cd3753e161
treec62e0d7d07db8a288a685d661d53b8fc1ccbbf1f
parent41cbf57593c868985ccdcd0a79bdde8f54b8d67e
Fix: Include linux/sched/rt.h for kernels v3.9 to v3.14

From kernel v3.0 to v3.8, MAX_RT_PRIO is defined in linux/sched.h.

From kernel v3.9 to v3.14, MAX_RT_PRIO is defined in linux/sched/rt.h,
which is not included by linux/sched.h (hence this work-around).

From kernel v3.15 onwards, MAX_RT_PRIO is defined in linux/sched/prio.h,
which is included by linux/sched.h.

Add the missing linux/sched/rt.h include for the affected kernel version
range.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ie7e1d9dc710621deca04553a9b5ba7f9a4d83c15
src/lttng-context-prio.c
This page took 0.02558 seconds and 4 git commands to generate.