All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Kevin Hilman <khilman@mvista.com>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH/RFC 2] ARM: OMAP: implement CPUfreq frequency table based on PRCM table
Date: Thu, 15 Nov 2007 12:48:33 -0800	[thread overview]
Message-ID: <20071115204832.GF20686@atomide.com> (raw)
In-Reply-To: <20071101174648.893572116@mvista.com>

Hi,

* Kevin Hilman <khilman@mvista.com> [071101 10:49]:
> [Tony, the cpu-omap code now passes in a table pointer which gets set
>  to the one filled out in the clock code.  Is this what you meant? ]

Yeh, looks good. Just one more thing below.

> This patch adds a CPUfreq frequency-table implementation for OMAP2 by
> walking the PRCM rate-table for available entries and adding them to a
> CPUfreq table.
> 
> CPUfreq can then be used to manage switching between all the available
> entries in the PRCM rate table.  Either use the CPUfreq sysfs
> interface directly, (see Section 3 of Documentation/cpu-freq/user-guide.txt)
> or use the cpufrequtils package:
> http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html

<snip>

> Index: dev/arch/arm/plat-omap/cpu-omap.c
> ===================================================================
> --- dev.orig/arch/arm/plat-omap/cpu-omap.c
> +++ dev/arch/arm/plat-omap/cpu-omap.c
> @@ -30,6 +30,11 @@
>  #ifdef CONFIG_ARCH_OMAP1
>  #define MPU_CLK		"mpu"
>  #else
> +
> +#define USE_FREQ_TABLE
> +void omap2_cpufreq_init_table(struct cpufreq_frequency_table **table);
> +static struct cpufreq_frequency_table *freq_table;
> +
>  #define MPU_CLK		"virt_prcm_set"
>  #endif
>  

How about calling omap2_cpufreq_init_table clk_init_cpufreq_table
instead? Then export it and define it in clock.h for omap?
It should be possible to have cpufreq as a module.

Regards,

Tony

      reply	other threads:[~2007-11-15 20:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-01 17:46 [PATCH/RFC 2] ARM: OMAP: implement CPUfreq frequency table based on PRCM table Kevin Hilman
2007-11-15 20:48 ` Tony Lindgren [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=20071115204832.GF20686@atomide.com \
    --to=tony@atomide.com \
    --cc=khilman@mvista.com \
    --cc=linux-omap-open-source@linux.omap.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.