All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: Catalin Marinas <catalin.marinas@arm.com>
Cc: lorenzo.pieralisi@arm.com, rjw@rjwysocki.net,
	devicetree@vger.kernel.org, arnd@arndb.de,
	linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
	lina.iyer@linaro.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 3/6] ARM64: cpuidle: Replace cpu_suspend by the common ARM/ARM64 function
Date: Fri, 13 Mar 2015 22:22:37 +0100	[thread overview]
Message-ID: <5503551D.2020202@linaro.org> (raw)
In-Reply-To: <20150313182102.GS30671@e104818-lin.cambridge.arm.com>

On 03/13/2015 07:21 PM, Catalin Marinas wrote:
> On Tue, Mar 03, 2015 at 01:29:34PM +0100, Daniel Lezcano wrote:
>> Call the common ARM/ARM64 'arm_cpuidle_suspend' instead of cpu_suspend function
>> which is specific to ARM64.
>>
>> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
>> ---
>>   drivers/cpuidle/cpuidle-arm64.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/cpuidle/cpuidle-arm64.c b/drivers/cpuidle/cpuidle-arm64.c
>> index 39a2c62..0cea244 100644
>> --- a/drivers/cpuidle/cpuidle-arm64.c
>> +++ b/drivers/cpuidle/cpuidle-arm64.c
>> @@ -49,7 +49,7 @@ static int arm64_enter_idle_state(struct cpuidle_device *dev,
>>   		 * call the CPU ops suspend protocol with idle index as a
>>   		 * parameter.
>>   		 */
>> -		ret = cpu_suspend(idx);
>> +		arm_cpuidle_suspend(idx);
>
> Nitpick: why don't we just rename the arm one cpuidle_suspend()?

I don't have a strong opinion on that. Actually, the cpuidle_ prefix is 
used by the arch agnostic code in drivers/cpuidle/cpuidle.c.

If Rafael agrees on changing it to this function name, I am ok also.


-- 
  <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


WARNING: multiple messages have this Message-ID (diff)
From: daniel.lezcano@linaro.org (Daniel Lezcano)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/6] ARM64: cpuidle: Replace cpu_suspend by the common ARM/ARM64 function
Date: Fri, 13 Mar 2015 22:22:37 +0100	[thread overview]
Message-ID: <5503551D.2020202@linaro.org> (raw)
In-Reply-To: <20150313182102.GS30671@e104818-lin.cambridge.arm.com>

On 03/13/2015 07:21 PM, Catalin Marinas wrote:
> On Tue, Mar 03, 2015 at 01:29:34PM +0100, Daniel Lezcano wrote:
>> Call the common ARM/ARM64 'arm_cpuidle_suspend' instead of cpu_suspend function
>> which is specific to ARM64.
>>
>> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
>> ---
>>   drivers/cpuidle/cpuidle-arm64.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/cpuidle/cpuidle-arm64.c b/drivers/cpuidle/cpuidle-arm64.c
>> index 39a2c62..0cea244 100644
>> --- a/drivers/cpuidle/cpuidle-arm64.c
>> +++ b/drivers/cpuidle/cpuidle-arm64.c
>> @@ -49,7 +49,7 @@ static int arm64_enter_idle_state(struct cpuidle_device *dev,
>>   		 * call the CPU ops suspend protocol with idle index as a
>>   		 * parameter.
>>   		 */
>> -		ret = cpu_suspend(idx);
>> +		arm_cpuidle_suspend(idx);
>
> Nitpick: why don't we just rename the arm one cpuidle_suspend()?

I don't have a strong opinion on that. Actually, the cpuidle_ prefix is 
used by the arch agnostic code in drivers/cpuidle/cpuidle.c.

If Rafael agrees on changing it to this function name, I am ok also.


-- 
  <http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

  reply	other threads:[~2015-03-13 21:22 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-03 12:29 [PATCH 0/6] ARM: cpuidle: Unify the ARM64/ARM DT approach Daniel Lezcano
2015-03-03 12:29 ` Daniel Lezcano
2015-03-03 12:29 ` Daniel Lezcano
2015-03-03 12:29 ` [PATCH 1/6] ARM: cpuidle: Remove duplicate header inclusion Daniel Lezcano
2015-03-03 12:29   ` Daniel Lezcano
2015-03-13 17:54   ` Lorenzo Pieralisi
2015-03-13 17:54     ` Lorenzo Pieralisi
2015-03-03 12:29 ` [PATCH 2/6] ARM: cpuidle: Add a cpuidle ops structure to be used for DT Daniel Lezcano
2015-03-03 12:29   ` Daniel Lezcano
2015-03-16 18:16   ` Lorenzo Pieralisi
2015-03-16 18:16     ` Lorenzo Pieralisi
2015-03-17 11:01     ` Daniel Lezcano
2015-03-17 11:01       ` Daniel Lezcano
2015-03-16 22:08   ` Stephen Boyd
2015-03-16 22:08     ` Stephen Boyd
2015-03-17 11:29     ` Lorenzo Pieralisi
2015-03-17 11:29       ` Lorenzo Pieralisi
2015-03-18  1:14       ` Stephen Boyd
2015-03-18  1:14         ` Stephen Boyd
2015-03-18  8:13         ` Daniel Lezcano
2015-03-18  8:13           ` Daniel Lezcano
2015-03-20 17:23   ` Catalin Marinas
2015-03-20 17:23     ` Catalin Marinas
2015-03-03 12:29 ` [PATCH 3/6] ARM64: cpuidle: Replace cpu_suspend by the common ARM/ARM64 function Daniel Lezcano
2015-03-03 12:29   ` Daniel Lezcano
2015-03-13 18:21   ` Catalin Marinas
2015-03-13 18:21     ` Catalin Marinas
2015-03-13 21:22     ` Daniel Lezcano [this message]
2015-03-13 21:22       ` Daniel Lezcano
2015-03-03 12:29 ` [PATCH 5/6] ARM64: cpuidle: Remove arm64 reference Daniel Lezcano
2015-03-03 12:29   ` Daniel Lezcano
     [not found] ` <1425385777-14766-1-git-send-email-daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-03-03 12:29   ` [PATCH 4/6] ARM64: cpuidle: Rename cpu_init_idle to a common function name Daniel Lezcano
2015-03-03 12:29     ` Daniel Lezcano
2015-03-03 12:29     ` Daniel Lezcano
     [not found]     ` <1425385777-14766-5-git-send-email-daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-03-13 18:22       ` Catalin Marinas
2015-03-13 18:22         ` Catalin Marinas
2015-03-13 18:22         ` Catalin Marinas
2015-03-14 11:41         ` Catalin Marinas
2015-03-14 11:41           ` Catalin Marinas
2015-03-15 16:26           ` Lorenzo Pieralisi
2015-03-15 16:26             ` Lorenzo Pieralisi
2015-03-20 16:01       ` Daniel Lezcano
2015-03-20 16:01         ` Daniel Lezcano
2015-03-20 16:01         ` Daniel Lezcano
2015-03-20 17:26     ` Catalin Marinas
2015-03-20 17:26       ` Catalin Marinas
2015-03-03 12:29   ` [PATCH 6/6] ARM: cpuidle: Enable the ARM64 driver for both ARM32/ARM64 Daniel Lezcano
2015-03-03 12:29     ` Daniel Lezcano
2015-03-03 12:29     ` Daniel Lezcano
2015-03-12 14:25   ` [PATCH 0/6] ARM: cpuidle: Unify the ARM64/ARM DT approach Daniel Lezcano
2015-03-12 14:25     ` Daniel Lezcano
2015-03-12 14:25     ` Daniel Lezcano
2015-03-13 18:29     ` Catalin Marinas
2015-03-13 18:29       ` Catalin Marinas
2015-03-13 21:26       ` Daniel Lezcano
2015-03-13 21:26         ` Daniel Lezcano
2015-03-13 20:51     ` Rob Herring
2015-03-13 20:51       ` Rob Herring
2015-03-13 21:31       ` Daniel Lezcano
2015-03-13 21:31         ` Daniel Lezcano
2015-03-15 16:48       ` Lorenzo Pieralisi
2015-03-15 16:48         ` Lorenzo Pieralisi
2015-03-13 17:03 ` Kevin Hilman
2015-03-13 17:03   ` Kevin Hilman
2015-03-13 17:08   ` Daniel Lezcano
2015-03-13 17:08     ` Daniel Lezcano

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=5503551D.2020202@linaro.org \
    --to=daniel.lezcano@linaro.org \
    --cc=arnd@arndb.de \
    --cc=catalin.marinas@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=lina.iyer@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=rjw@rjwysocki.net \
    /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.