diff mbox series

[RFC,02/86] Revert "sched/core: Make sched_dynamic_mutex static"

Message ID 20231107215742.363031-3-ankur.a.arora@oracle.com (mailing list archive)
State New
Headers show
Series Make the kernel preemptible | expand

Commit Message

Ankur Arora Nov. 7, 2023, 9:56 p.m. UTC
This reverts commit 9b8e17813aeccc29c2f9f2e6e68997a6eac2d26d.

Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com>
---
 kernel/sched/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steven Rostedt Nov. 7, 2023, 11:04 p.m. UTC | #1
On Tue,  7 Nov 2023 13:56:48 -0800
Ankur Arora <ankur.a.arora@oracle.com> wrote:

> This reverts commit 9b8e17813aeccc29c2f9f2e6e68997a6eac2d26d.

Please explain why it's being reverted.

-- Steve

> 
> Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com>
> ---
>  kernel/sched/core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/kernel/sched/core.c b/kernel/sched/core.c
> index 802551e0009b..ab773ea2cb34 100644
> --- a/kernel/sched/core.c
> +++ b/kernel/sched/core.c
> @@ -8746,7 +8746,7 @@ int sched_dynamic_mode(const char *str)
>  #error "Unsupported PREEMPT_DYNAMIC mechanism"
>  #endif
>  
> -static DEFINE_MUTEX(sched_dynamic_mutex);
> +DEFINE_MUTEX(sched_dynamic_mutex);
>  static bool klp_override;
>  
>  static void __sched_dynamic_update(int mode)
diff mbox series

Patch

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 802551e0009b..ab773ea2cb34 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -8746,7 +8746,7 @@  int sched_dynamic_mode(const char *str)
 #error "Unsupported PREEMPT_DYNAMIC mechanism"
 #endif
 
-static DEFINE_MUTEX(sched_dynamic_mutex);
+DEFINE_MUTEX(sched_dynamic_mutex);
 static bool klp_override;
 
 static void __sched_dynamic_update(int mode)