lkml.org 
[lkml]   [2014]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 05/16] rcu: Add noreturn attribute to boost kthread
    Date
    rcu_boost_kthread() runs in an infinite loop and does not return. This commit
    adds the __noreturn attribute to the function.

    Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
    ---
    kernel/rcu/tree_plugin.h | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h
    index bac9797..dd53247 100644
    --- a/kernel/rcu/tree_plugin.h
    +++ b/kernel/rcu/tree_plugin.h
    @@ -1222,7 +1222,7 @@ static int rcu_boost(struct rcu_node *rnp)
    * Priority-boosting kthread. One per leaf rcu_node and one for the
    * root rcu_node.
    */
    -static int rcu_boost_kthread(void *arg)
    +static __noreturn int rcu_boost_kthread(void *arg)
    {
    struct rcu_node *rnp = (struct rcu_node *)arg;
    int spincnt = 0;
    @@ -1250,7 +1250,6 @@ static int rcu_boost_kthread(void *arg)
    }
    /* NOTREACHED */
    trace_rcu_utilization(TPS("End boost kthread@notreached"));
    - return 0;
    }

    /*
    --
    2.0.0.rc2


    \
     
     \ /
      Last update: 2014-07-23 08:02    [W:3.732 / U:0.108 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site