public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
To: Robin Getz <rgetz@blackfin.uclinux.org>
Cc: Adrian Bunk <bunk@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Randy Dunlap <randy.dunlap@oracle.com>,
	bryan.wu@analog.com, linux-kernel@vger.kernel.org
Subject: Re: [2.6.24 patch] restore blackfin HARDWARE_PM support
Date: Sat, 29 Dec 2007 01:23:27 -0500	[thread overview]
Message-ID: <20071229062326.GA16853@Krystal> (raw)
In-Reply-To: <200712290114.46694.rgetz@blackfin.uclinux.org>

* Robin Getz (rgetz@blackfin.uclinux.org) wrote:
> On Fri 28 Dec 2007 14:28, Mathieu Desnoyers pondered:
> > * Adrian Bunk (bunk@kernel.org) wrote:
> > > On Fri, Dec 28, 2007 at 02:14:04PM -0500, Mathieu Desnoyers wrote:
> > > > * Adrian Bunk (adrian.bunk@movial.fi) wrote:
> > > > > This patch restores the blackfin Hardware Performance Monitor Profiling 
> > > > > support that was killed by
> > > > > commit 09cadedbdc01f1a4bea1f427d4fb4642eaa19da9.
> > > > > 
> > > > > Signed-off-by: Adrian Bunk <adrian.bunk@movial.fi>
> > > > > 
> > > > 
> > > > Yep, this one too must be put back, but kernel/Kconfig.instrumentation
> > > > seems like the wrong spot for a blackfin-specific config option (and
> > > > this will break the instrumentation menu removal patches in -mm).
> > > > 
> > > > Can we put this in arch/blackfin/Kconfig instead ?
> > > 
> > > No, this is a user visible option that belongs into the same menu as
> > > "Profling support".
> > > 
> > 
> > Actually, I wonder why these options exist at all rather than being on
> > by default when profiling is enabled. There is no such thing as
> > "activating the performance monitor profiling" on other architectures.
> > What is so special about blackfin that makes it need it ?
> 
> This is probably more historical, and you are correct - it should just be part of profiling.
> 

Ok, and do we really need to make HARDWARE_PM a tristate ? I see that
part of it must be compiled into the kernel in core .S files. Does it
really make sense for it to be a module ?

Also, op_model_bf533.c sits in the arch/blackfin/oprofile directory,
(built if HARDWARE_PM is y or m) but depends on PROFILING, not OPROFILE.
Is HARDWARE_PM useful at all without OPROFILE ?

> 
> > > > > ---
> > > > > 
> > > > >  kernel/Kconfig.instrumentation |    9 +++++++++
> > > > >  1 file changed, 9 insertions(+)
> > > > > 
> > > > > 942996f33f81726c5edb012d61ecdad70c55884d 
> > > > > diff --git a/kernel/Kconfig.instrumentation b/kernel/Kconfig.instrumentation
> > > > > index 97c76ca..e023671 100644
> > > > > --- a/kernel/Kconfig.instrumentation
> > > > > +++ b/kernel/Kconfig.instrumentation
> > > > > @@ -44,2 +44,11 @@ config OPROFILE_MPCORE
> > > > >  
> > > > > +config HARDWARE_PM
> > > > > +	tristate "Hardware Performance Monitor Profiling"
> > > > > +	depends on BLACKFIN && PROFILING
> > > > > +	help
> > > > > +	  take use of hardware performance monitor to profiling the kernel
> > > > > +	  and application.
> > > > > +
> > > > > +	  If unsure, say N.
> > > > > +
> > > > >  config KPROBES
> > > > > 
> > > > 
> > > > Mathieu Desnoyers
> > > 
> > > cu
> > > Adrian
> > > 
> > > -- 
> > > 
> > >        "Is there not promise of rain?" Ling Tan asked suddenly out
> > >         of the darkness. There had been need of rain for many days.
> > >        "Only a promise," Lao Er said.
> > >                                        Pearl S. Buck - Dragon Seed
> > > 
> > 

-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68

  reply	other threads:[~2007-12-29  6:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-28 18:56 [2.6.24 patch] restore blackfin HARDWARE_PM support Adrian Bunk
2007-12-28 19:14 ` Mathieu Desnoyers
2007-12-28 19:23   ` Adrian Bunk
2007-12-28 19:28     ` Mathieu Desnoyers
2007-12-29  6:14       ` Robin Getz
2007-12-29  6:23         ` Mathieu Desnoyers [this message]
2007-12-29 19:28           ` Robin Getz
2007-12-29 16:29         ` [2.6.24 patch] Fix " Mathieu Desnoyers
2008-01-02 17:46           ` Mathieu Desnoyers

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=20071229062326.GA16853@Krystal \
    --to=mathieu.desnoyers@polymtl.ca \
    --cc=akpm@linux-foundation.org \
    --cc=bryan.wu@analog.com \
    --cc=bunk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=randy.dunlap@oracle.com \
    --cc=rgetz@blackfin.uclinux.org \
    /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