All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dominik Brodowski <linux@dominikbrodowski.de>
To: Dave Jones <davej@redhat.com>
Cc: cpufreq@www.linux.org.uk
Subject: Re: longrun.
Date: Sat, 3 Jul 2004 21:33:13 +0200	[thread overview]
Message-ID: <20040703193313.GA8736@dominikbrodowski.de> (raw)
In-Reply-To: <20040703163807.GU7101@redhat.com>

On Sat, Jul 03, 2004 at 05:38:07PM +0100, Dave Jones wrote:
> I was just looking into this..
> Error: ./arch/i386/kernel/cpu/cpufreq/longrun.o .data refers to 00000018 R_386_32          .init.text
> 
> When I noticed that longrun_get_policy() is only called from longrun_cpu_init().
> Is there a reason this driver doesn't have a .getpolicy method pointer pointing
> to this routine ?

Because "policy" is/should be driver specific. Longrun CPUs can be set to a
frequency range _and_ a "policy" (powersave or performance); even though we
currently assume all such "range" CPUs support these two modes we should
stop doing so soon. So, the core doesn't implement a "getpolicy" method --
only a "get" (==get current frequency) function. For Longrun CPUs, this is
purely informational as neither the TSC nor any other part of the kernel
needs to know the current frequency, and the frequency may and most likely
will change "behind the kernel's back". And it is implemented in

static unsigned int longrun_get(unsigned int cpu)

> 
> Incidentally, I'm a bit puzzled by the error.
> The only __init functions are ..
> 
> longrun_get_policy
> longrun_determine_freqs
> longrun_cpu_init
> longrun_init
> 
> The first two are only called by the 3rd. and the 3rd/4th are
> only ever called at init time.
> 
> What do I miss here?

Sorry, don't know what's broken here. However, I might suspect these
functions being __init() [*] -- could you change that to __devinit and/or
remove it completely, and re-test, please?

Thanks,
	Dominik


[*] ... I know, it was me ...

      reply	other threads:[~2004-07-03 19:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-03 16:38 longrun Dave Jones
2004-07-03 19:33 ` Dominik Brodowski [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=20040703193313.GA8736@dominikbrodowski.de \
    --to=linux@dominikbrodowski.de \
    --cc=cpufreq@www.linux.org.uk \
    --cc=davej@redhat.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.