lkml.org 
[lkml]   [2013]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: [PATCH 21/27] nohz: Only stop the tick on RCU nocb CPUs
Date
Hi Frederic,

On Sat, 29 Dec 2012 17:43:00 +0100, Frederic Weisbecker wrote:
> On a full dynticks CPU, we want the RCU callbacks to be
> offlined to another CPU, otherwise we need to keep
> the tick to wait for the grace period completion.
>
> Ensure the full dynticks CPU is also an rcu_nocb one.
[snip]
> -static bool is_nocb_cpu(int cpu)
> -{
> - return false;
> -}
> -

You may want to add the following also to shut up the gcc:

CC kernel/rcutree.o
In file included from /home/namhyung/project/linux/kernel/rcutree.c:58:0:
/home/namhyung/project/linux/kernel/rcutree.h:539:13: warning: ‘is_nocb_cpu’ declared ‘static’ but never defined [-Wunused-function]


Thanks,
Namhyung


diff --git a/kernel/rcutree.h b/kernel/rcutree.h
index 4b69291b093d..fbbad931c36a 100644
--- a/kernel/rcutree.h
+++ b/kernel/rcutree.h
@@ -536,7 +536,6 @@ static void print_cpu_stall_info(struct rcu_state *rsp, int cpu);
static void print_cpu_stall_info_end(void);
static void zero_cpu_stall_ticks(struct rcu_data *rdp);
static void increment_cpu_stall_ticks(void);
-static bool is_nocb_cpu(int cpu);
static bool __call_rcu_nocb(struct rcu_data *rdp, struct rcu_head *rhp,
bool lazy);
static bool rcu_nocb_adopt_orphan_cbs(struct rcu_state *rsp,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2013-01-02 10:21    [W:0.261 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site