From: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
To: James Hartley <James.Hartley@imgtec.com>,
Andrew Bresticker <abrestic@chromium.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Linux-MIPS <linux-mips@linux-mips.org>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
James Hogan <James.Hogan@imgtec.com>,
Thomas Gleixner <tglx@linutronix.de>,
Damien Horsley <Damien.Horsley@imgtec.com>,
Govindraj Raja <Govindraj.Raja@imgtec.com>
Subject: Re: [PATCH 7/7] mips: pistachio: Allow to enable the external timer based clocksource
Date: Fri, 22 May 2015 15:08:45 -0300 [thread overview]
Message-ID: <555F70AD.7060307@imgtec.com> (raw)
In-Reply-To: <72BC0C8BD7BB6F45988A99382E5FBAE5445286D0@hhmail02.hh.imgtec.org>
On 05/22/2015 01:58 PM, James Hartley wrote:
>
>
>> -----Original Message-----
>> From: abrestic@google.com [mailto:abrestic@google.com] On Behalf Of
>> Andrew Bresticker
>> Sent: 22 May 2015 17:50
>> To: Ezequiel Garcia
>> Cc: linux-kernel@vger.kernel.org; Linux-MIPS; Daniel Lezcano;
>> devicetree@vger.kernel.org; James Hartley; James Hogan; Thomas Gleixner;
>> Damien Horsley; Govindraj Raja
>> Subject: Re: [PATCH 7/7] mips: pistachio: Allow to enable the external timer
>> based clocksource
>>
>> On Thu, May 21, 2015 at 2:43 PM, Ezequiel Garcia
>> <ezequiel.garcia@imgtec.com> wrote:
>>> This commit introduces a new config, so the user can choose to enable
>>> the General Purpose Timer based clocksource. This option is required
>>> to have CPUFreq support.
>>>
>>> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
>>> ---
>>> arch/mips/Kconfig | 1 +
>>> arch/mips/pistachio/Kconfig | 13 +++++++++++++
>>> 2 files changed, 14 insertions(+)
>>> create mode 100644 arch/mips/pistachio/Kconfig
>>>
>>> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index
>>> f501665..91f6ca0 100644
>>> --- a/arch/mips/Kconfig
>>> +++ b/arch/mips/Kconfig
>>> @@ -934,6 +934,7 @@ source "arch/mips/jazz/Kconfig"
>>> source "arch/mips/jz4740/Kconfig"
>>> source "arch/mips/lantiq/Kconfig"
>>> source "arch/mips/lasat/Kconfig"
>>> +source "arch/mips/pistachio/Kconfig"
>>> source "arch/mips/pmcs-msp71xx/Kconfig"
>>> source "arch/mips/ralink/Kconfig"
>>> source "arch/mips/sgi-ip27/Kconfig"
>>> diff --git a/arch/mips/pistachio/Kconfig b/arch/mips/pistachio/Kconfig
>>> new file mode 100644 index 0000000..97731ea
>>> --- /dev/null
>>> +++ b/arch/mips/pistachio/Kconfig
>>> @@ -0,0 +1,13 @@
>>> +config PISTACHIO_GPTIMER_CLKSRC
>>> + bool "Enable General Purpose Timer based clocksource"
>>> + depends on MACH_PISTACHIO
>>> + select CLKSRC_PISTACHIO
>>> + select MIPS_EXTERNAL_TIMER
>>
>> Why not just select these in the MACH_PISTACHIO Kconfig entry? Is there any
>> harm in always having the Pistachio GPT enabled?
>
> It does mean that there are less GPT's available for other users, and whilst I'm not aware of any use cases that currently require all 4, perhaps having the flexibility is worth it.
>
And also, this is only useful if the user wants CPUFreq. Otherwise we
have MIPS GIC and R4K for clockevents and clocksource. Not sure why we'd
want another one.
--
Ezequiel
prev parent reply other threads:[~2015-05-22 18:08 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-21 21:37 [PATCH 0/7] Clocksource changes for Pistachio CPUFreq Ezequiel Garcia
2015-05-21 21:37 ` [PATCH 2/7] clocksource: mips-gic: Add missing error returns checks Ezequiel Garcia
[not found] ` <1432244260-14908-3-git-send-email-ezequiel.garcia-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2015-05-21 22:18 ` Andrew Bresticker
[not found] ` <1432244260-14908-1-git-send-email-ezequiel.garcia-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2015-05-21 21:37 ` [PATCH 1/7] clocksource: mips-gic: Enable the clock before using it Ezequiel Garcia
[not found] ` <1432244260-14908-2-git-send-email-ezequiel.garcia-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2015-05-21 22:17 ` Andrew Bresticker
2015-05-21 21:37 ` [PATCH 3/7] clocksource: mips-gic: Split clocksource and clockevent initialization Ezequiel Garcia
2015-05-21 22:24 ` Andrew Bresticker
[not found] ` <CAL1qeaFkzpH+nGqRPOuY-L62jP8NgZWP0WxKTYKXZDpe1sSojg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-21 22:25 ` Ezequiel Garcia
[not found] ` <555E5B5C.9050807-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2015-05-22 16:53 ` Andrew Bresticker
2015-05-21 21:37 ` [PATCH 4/7] clocksource: mips-gic: Update clockevent frequency on clock rate changes Ezequiel Garcia
[not found] ` <1432244260-14908-5-git-send-email-ezequiel.garcia-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2015-05-21 22:32 ` Andrew Bresticker
[not found] ` <CAL1qeaEzKh6H8HBCULJWM4yMnSQGexWmV0rrnYMViMpuzKWyLg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-21 22:30 ` Ezequiel Garcia
2015-05-21 21:41 ` [PATCH 6/7] clocksource: Add Pistachio clocksource-only driver Ezequiel Garcia
2015-05-21 22:00 ` Thomas Gleixner
2015-05-21 22:02 ` Ezequiel Garcia
[not found] ` <555E55F4.2060500-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2015-05-21 22:09 ` Thomas Gleixner
2015-05-22 16:48 ` Andrew Bresticker
[not found] ` <CAL1qeaEL7D6=WpyigbHWv8DEhp0XhC4acCYRkQ6Fm0Wr4HW11A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-26 14:16 ` Ezequiel Garcia
2015-05-21 21:41 ` [PATCH 5/7] clocksource: Add Pistachio SoC general purpose timer binding document Ezequiel Garcia
2015-05-21 23:41 ` Andrew Bresticker
2015-05-21 21:43 ` [PATCH 7/7] mips: pistachio: Allow to enable the external timer based clocksource Ezequiel Garcia
[not found] ` <1432244618-15548-1-git-send-email-ezequiel.garcia-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2015-05-22 16:50 ` Andrew Bresticker
2015-05-22 16:58 ` James Hartley
2015-05-22 18:08 ` Ezequiel Garcia [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=555F70AD.7060307@imgtec.com \
--to=ezequiel.garcia@imgtec.com \
--cc=Damien.Horsley@imgtec.com \
--cc=Govindraj.Raja@imgtec.com \
--cc=James.Hartley@imgtec.com \
--cc=James.Hogan@imgtec.com \
--cc=abrestic@chromium.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=tglx@linutronix.de \
/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;
as well as URLs for NNTP newsgroup(s).