mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hirokazu Takata <takata@linux-m32r.org>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Hirokazu Takata <takata@linux-m32r.org>,
	Mike Travis <travis@sgi.com>, Ingo Molnar <mingo@elte.hu>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] percpu: fix percpu accessors to potentially !cpu_possible() cpus: m32r
Date: Fri, 28 Nov 2008 02:59:39 +0900	[thread overview]
Message-ID: <swf4p1taw38.wl%takata@linux-m32r.org> (raw)
In-Reply-To: <200811212109.01479.rusty@rustcorp.com.au>

Acked-by: Hirokazu Takata <takata@linux-m32r.org>

At Fri, 21 Nov 2008 21:09:01 +1030, Rusty Russell wrote:
> 
> Impact: CPU iterator bugfixes
> 
> Percpu areas are only allocated for possible cpus.  In general, you
> shouldn't access random cpu's percpu areas.
> 
> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
> Signed-off-by: Mike Travis <travis@sgi.com>
> Acked-by: Ingo Molnar <mingo@elte.hu>
> ---
>  arch/m32r/kernel/smpboot.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- test-compile.orig/arch/m32r/kernel/smpboot.c
> +++ test-compile/arch/m32r/kernel/smpboot.c
> @@ -598,7 +598,7 @@ int setup_profiling_timer(unsigned int m
>  	 * accounting. At that time they also adjust their APIC timers
>  	 * accordingly.
>  	 */
> -	for (i = 0; i < NR_CPUS; ++i)
> +	for_each_possible_cpu(i)
>  		per_cpu(prof_multiplier, i) = multiplier;
>  
>  	return 0;
> 
> 

      reply	other threads:[~2008-11-27 18:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-21 10:39 Rusty Russell
2008-11-27 17:59 ` Hirokazu Takata [this message]

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=swf4p1taw38.wl%takata@linux-m32r.org \
    --to=takata@linux-m32r.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rusty@rustcorp.com.au \
    --cc=travis@sgi.com \
    /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

all inboxes | Powered by JetHome®