All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhao Chenhui <chenhui.zhao@freescale.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: scottwood@freescale.com, linuxppc-dev@lists.ozlabs.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6 1/5] powerpc/85xx: implement hardware timebase sync
Date: Thu, 28 Jun 2012 11:38:15 +0800	[thread overview]
Message-ID: <20120628033815.GA11387@localhost.localdomain> (raw)
In-Reply-To: <1340797732.3732.46.camel@pasglop>

On Wed, Jun 27, 2012 at 09:48:52PM +1000, Benjamin Herrenschmidt wrote:
> On Wed, 2012-06-27 at 18:21 +0800, Zhao Chenhui wrote:
> > > What's that CONFIG option for ?
> > > 
> > > Cheers,
> > > Ben.
> > 
> > This option is to guard the timebase sync routines. It is selected
> > when KEXEC or HOTPLUG_CPU is enabled on Freescale Book-E platforms.
> 
> Any reason not to just make it unconditional ? That sort of config
> option tend to just confuse things and make bug reports harder to sort
> out.... Also you decrease your test coverage.
> 
> Cheers,
> Ben.

The bootloader have done a timebase sync. If we do not need KEXEC or HOTPLUG_CPU feature,
it is unnecessary to do it again at boot time of kernel. I only compile the timebase sync routines
when users enable KEXEC or HOTPLUG_CPU.

-Chenhui

WARNING: multiple messages have this Message-ID (diff)
From: Zhao Chenhui <chenhui.zhao@freescale.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: <linuxppc-dev@lists.ozlabs.org>, <scottwood@freescale.com>,
	<linux-kernel@vger.kernel.org>, <leoli@freescale.com>
Subject: Re: [PATCH v6 1/5] powerpc/85xx: implement hardware timebase sync
Date: Thu, 28 Jun 2012 11:38:15 +0800	[thread overview]
Message-ID: <20120628033815.GA11387@localhost.localdomain> (raw)
In-Reply-To: <1340797732.3732.46.camel@pasglop>

On Wed, Jun 27, 2012 at 09:48:52PM +1000, Benjamin Herrenschmidt wrote:
> On Wed, 2012-06-27 at 18:21 +0800, Zhao Chenhui wrote:
> > > What's that CONFIG option for ?
> > > 
> > > Cheers,
> > > Ben.
> > 
> > This option is to guard the timebase sync routines. It is selected
> > when KEXEC or HOTPLUG_CPU is enabled on Freescale Book-E platforms.
> 
> Any reason not to just make it unconditional ? That sort of config
> option tend to just confuse things and make bug reports harder to sort
> out.... Also you decrease your test coverage.
> 
> Cheers,
> Ben.

The bootloader have done a timebase sync. If we do not need KEXEC or HOTPLUG_CPU feature,
it is unnecessary to do it again at boot time of kernel. I only compile the timebase sync routines
when users enable KEXEC or HOTPLUG_CPU.

-Chenhui


  reply	other threads:[~2012-06-28  3:37 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-26 10:25 [PATCH v6 1/5] powerpc/85xx: implement hardware timebase sync Zhao Chenhui
2012-06-26 10:25 ` Zhao Chenhui
2012-06-26 10:25 ` [PATCH v6 2/5] powerpc/85xx: add HOTPLUG_CPU support Zhao Chenhui
2012-06-26 10:25   ` Zhao Chenhui
2012-06-26 10:25 ` [PATCH v6 3/5] powerpc/85xx: add sleep and deep sleep support Zhao Chenhui
2012-06-26 10:25   ` Zhao Chenhui
2012-07-13 12:27   ` Kumar Gala
2012-07-13 12:27     ` Kumar Gala
2012-06-26 10:25 ` [PATCH v6 4/5] fsl_pmc: Add API to enable device as wakeup event source Zhao Chenhui
2012-06-26 10:25   ` Zhao Chenhui
2012-06-26 10:25 ` [PATCH v6 5/5] powerpc/85xx: add support to JOG feature using cpufreq interface Zhao Chenhui
2012-06-26 10:25   ` Zhao Chenhui
2012-06-26 14:03 ` [PATCH v6 1/5] powerpc/85xx: implement hardware timebase sync Kumar Gala
2012-06-26 14:03   ` Kumar Gala
2012-06-26 21:45   ` Scott Wood
2012-06-26 21:45     ` Scott Wood
2012-06-26 22:10     ` Benjamin Herrenschmidt
2012-06-26 22:10       ` Benjamin Herrenschmidt
2012-06-27 10:10   ` Zhao Chenhui
2012-06-27 10:10     ` Zhao Chenhui
2012-06-26 22:10 ` Benjamin Herrenschmidt
2012-06-26 22:10   ` Benjamin Herrenschmidt
2012-06-27 10:21   ` Zhao Chenhui
2012-06-27 10:21     ` Zhao Chenhui
2012-06-27 11:48     ` Benjamin Herrenschmidt
2012-06-27 11:48       ` Benjamin Herrenschmidt
2012-06-28  3:38       ` Zhao Chenhui [this message]
2012-06-28  3:38         ` Zhao Chenhui
2012-06-28 10:50         ` Benjamin Herrenschmidt
2012-06-28 10:50           ` Benjamin Herrenschmidt
2012-06-28 18:30           ` Kumar Gala
2012-06-28 18:30             ` Kumar Gala
2012-06-29 10:33             ` Zhao Chenhui-B35336
2012-06-29 10:33               ` Zhao Chenhui-B35336
2012-07-02 10:44           ` Zhao Chenhui
2012-07-02 10:44             ` Zhao Chenhui
2012-06-29 15:39 ` Tabi Timur-B04825
2012-06-29 15:39   ` Tabi Timur-B04825
2012-06-29 15:57   ` Scott Wood
2012-06-29 15:57     ` Scott Wood
2012-06-29 16:04     ` Timur Tabi
2012-06-29 16:04       ` Timur Tabi
2012-06-29 16:10       ` Scott Wood
2012-06-29 16:10         ` Scott Wood
2012-06-29 16:12         ` Timur Tabi
2012-06-29 16:12           ` Timur Tabi
2012-06-29 17:10           ` Scott Wood
2012-06-29 17:10             ` Scott Wood
2012-07-02 10:10   ` Zhao Chenhui
2012-07-02 10:10     ` Zhao Chenhui

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=20120628033815.GA11387@localhost.localdomain \
    --to=chenhui.zhao@freescale.com \
    --cc=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=scottwood@freescale.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.