linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Viresh Kumar <viresh.kumar@linaro.org>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Linaro Kernel Mailman List <linaro-kernel@lists.linaro.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 0/3] timers: Allocate per-cpu tvec_base's statically
Date: Mon, 30 Mar 2015 15:25:36 +0530	[thread overview]
Message-ID: <CAKohponL7cUFUR4eM5QyO8dxrbZGahGU9i-C8qwA-Yx_K1MseQ@mail.gmail.com> (raw)
In-Reply-To: <20150330081826.GN23123@twins.programming.kicks-ass.net>

On 30 March 2015 at 13:48, Peter Zijlstra <peterz@infradead.org> wrote:
> I did the below on top; I'll sit on these patches for a wee while in the
> hope of the blackfin maintainer explaining his reasons for wrecking
> ____cacheline_aligned.

Two things I wanted to mention:

1.) We may need to drop the patch 2/3 as that breaks build for xtensa and tile.

   kernel/time/timer.c: In function 'init_timers_cpu':
   kernel/time/timer.c:1539:1: error: section attribute cannot be
specified for local variables
   kernel/time/timer.c:1539:1: error: section attribute cannot be
specified for local variables
>> kernel/time/timer.c:1539:1: error: declaration of '__pcpu_unique___tvec_bases' with no linkage follows extern declaration
   kernel/time/timer.c:1539:1: note: previous declaration of
'__pcpu_unique___tvec_bases' was here
   kernel/time/timer.c:1539:9: error: section attribute cannot be
specified for local variables
   kernel/time/timer.c:1539:9: error: section attribute cannot be
specified for local variables
   kernel/time/timer.c:1539:9: error: weak declaration of
'__tvec_bases' must be public
   kernel/time/timer.c:1539:9: error: declaration of '__tvec_bases'
with no linkage follows extern declaration
   kernel/time/timer.c:1539:9: note: previous declaration of
'__tvec_bases' was here

Can these be fixed somehow ?


2.) We probably don't need to wait for the blackfin guys as we
haven't broken anything yet. It will be broken only once we start
using an extra bit from base pointer, which will be done by a separate
patch trying to migrate running timers.

> ---
> Subject: timer: Further simplify SMP and HOTPLUG logic
> From: Peter Zijlstra <peterz@infradead.org>
> Date: Mon Mar 30 10:09:19 CEST 2015
>
> Remove one CONFIG_HOTPLUG_CPU #ifdef in trade for introducing one
> CONFIG_SMP #ifdef.
>
> The CONFIG_SMP ifdef avoids declaring the per-cpu __tvec_bases storage
> on UP systems since they already have boot_tvec_bases.
>
> Also (re)add a runtime check on the base alignment -- for the paranoid
> amongst us :-)
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> ---
>  kernel/time/timer.c |   28 +++++++++++++---------------
>  1 file changed, 13 insertions(+), 15 deletions(-)

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>

  reply	other threads:[~2015-03-30  9:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-30  5:17 [PATCH 0/3] timers: Allocate per-cpu tvec_base's statically Viresh Kumar
2015-03-30  5:17 ` [PATCH 1/3] timer: " Viresh Kumar
2015-03-31  7:45   ` Ingo Molnar
2015-03-31 11:32     ` Viresh Kumar
2015-03-30  5:17 ` [PATCH 2/3] timer: Limit the scope of __tvec_bases to init_timers_cpu() Viresh Kumar
2015-03-30  5:17 ` [PATCH 3/3] timer: Don't initialize tvec_base on hotplug Viresh Kumar
2015-03-30  8:18 ` [PATCH 0/3] timers: Allocate per-cpu tvec_base's statically Peter Zijlstra
2015-03-30  9:55   ` Viresh Kumar [this message]
2015-03-30 10:27     ` Peter Zijlstra
2015-03-30 10:33       ` Viresh Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKohponL7cUFUR4eM5QyO8dxrbZGahGU9i-C8qwA-Yx_K1MseQ@mail.gmail.com \
    --to=viresh.kumar@linaro.org \
    --cc=linaro-kernel@lists.linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).