lkml.org 
[lkml]   [2020]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] sched/fair: add __init to sched_init_granularity functions
    Date
    Function sched_init_granularity() is only called from __init
    functions, so mark it __init as well.

    Signed-off-by: Muchun Song <songmuchun@bytedance.com>
    ---
    kernel/sched/fair.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
    index 1141c7e77564d..6f05843c76d7d 100644
    --- a/kernel/sched/fair.c
    +++ b/kernel/sched/fair.c
    @@ -191,7 +191,7 @@ static void update_sysctl(void)
    #undef SET_SYSCTL
    }

    -void sched_init_granularity(void)
    +void __init sched_init_granularity(void)
    {
    update_sysctl();
    }
    --
    2.11.0
    \
     
     \ /
      Last update: 2020-04-06 09:49    [W:4.800 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site