* [PATCH - resend 1/3] thermal/drivers/cpu_cooling: Fixup the header and copyright
@ 2019-04-28 9:51 Daniel Lezcano
2019-04-28 9:51 ` [PATCH - resend 2/3] thermal/drivers/cpu_cooling: Add Software Package Data Exchange (SPDX) Daniel Lezcano
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Daniel Lezcano @ 2019-04-28 9:51 UTC (permalink / raw)
To: edubezval, rui.zhang
Cc: linux-kernel, linux-pm, Amit Daniel Kachhap, Viresh Kumar, Javi Merino
The copyright format does not conform to the format requested by
Linaro: https://wiki.linaro.org/Copyright
Fix it.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Viresh Kumar <viresh.kumar@linaro.org>
---
drivers/thermal/cpu_cooling.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index ee8419a6390c..42aeb9087cab 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -2,9 +2,11 @@
* linux/drivers/thermal/cpu_cooling.c
*
* Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com)
- * Copyright (C) 2012 Amit Daniel <amit.kachhap@linaro.org>
*
- * Copyright (C) 2014 Viresh Kumar <viresh.kumar@linaro.org>
+ * Copyright (C) 2012-2018 Linaro Limited.
+ *
+ * Authors: Amit Daniel <amit.kachhap@linaro.org>
+ * Viresh Kumar <viresh.kumar@linaro.org>
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* This program is free software; you can redistribute it and/or modify
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH - resend 2/3] thermal/drivers/cpu_cooling: Add Software Package Data Exchange (SPDX)
2019-04-28 9:51 [PATCH - resend 1/3] thermal/drivers/cpu_cooling: Fixup the header and copyright Daniel Lezcano
@ 2019-04-28 9:51 ` Daniel Lezcano
2019-04-28 9:51 ` [PATCH - resend 3/3] thermal/drivers/cpu_cooling: Remove pointless field Daniel Lezcano
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Daniel Lezcano @ 2019-04-28 9:51 UTC (permalink / raw)
To: edubezval, rui.zhang
Cc: linux-kernel, linux-pm, Viresh Kumar, Philippe Ombredanne,
Amit Daniel Kachhap, Javi Merino
For license auditing purpose, let's add the SPDX tag.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Philippe Ombredanne <pombredanne@nexb.com>
---
drivers/thermal/cpu_cooling.c | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index 42aeb9087cab..b9d152a5f7ba 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* linux/drivers/thermal/cpu_cooling.c
*
@@ -8,21 +9,6 @@
* Authors: Amit Daniel <amit.kachhap@linaro.org>
* Viresh Kumar <viresh.kumar@linaro.org>
*
- * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- *
- * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
#include <linux/module.h>
#include <linux/thermal.h>
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH - resend 3/3] thermal/drivers/cpu_cooling: Remove pointless field
2019-04-28 9:51 [PATCH - resend 1/3] thermal/drivers/cpu_cooling: Fixup the header and copyright Daniel Lezcano
2019-04-28 9:51 ` [PATCH - resend 2/3] thermal/drivers/cpu_cooling: Add Software Package Data Exchange (SPDX) Daniel Lezcano
@ 2019-04-28 9:51 ` Daniel Lezcano
2019-04-29 5:43 ` [PATCH - resend 1/3] thermal/drivers/cpu_cooling: Fixup the header and copyright Viresh Kumar
2019-05-11 19:25 ` [PATCH - resend 1/3] " Eduardo Valentin
3 siblings, 0 replies; 7+ messages in thread
From: Daniel Lezcano @ 2019-04-28 9:51 UTC (permalink / raw)
To: edubezval, rui.zhang
Cc: linux-kernel, linux-pm, Viresh Kumar, Amit Daniel Kachhap, Javi Merino
The structure cpufreq_cooling_device provides a backpointer to the thermal
device but this one is used for a trace and to unregister. For the trace,
we don't really need this field and the unregister function as the same
pointer passed as parameter. Remove it.
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
drivers/thermal/cpu_cooling.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index b9d152a5f7ba..9b014d0e8e70 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -87,7 +87,6 @@ struct cpufreq_cooling_device {
unsigned int clipped_freq;
unsigned int max_level;
struct freq_table *freq_table; /* In descending order */
- struct thermal_cooling_device *cdev;
struct cpufreq_policy *policy;
struct list_head node;
struct time_in_idle *idle_time;
@@ -195,8 +194,7 @@ static int update_freq_table(struct cpufreq_cooling_device *cpufreq_cdev,
dev = get_cpu_device(cpu);
if (unlikely(!dev)) {
- dev_warn(&cpufreq_cdev->cdev->device,
- "No cpu device for cpu %d\n", cpu);
+ pr_warn("No cpu device for cpu %d\n", cpu);
return -ENODEV;
}
@@ -679,7 +677,6 @@ __cpufreq_cooling_register(struct device_node *np,
goto remove_ida;
cpufreq_cdev->clipped_freq = cpufreq_cdev->freq_table[0].frequency;
- cpufreq_cdev->cdev = cdev;
mutex_lock(&cooling_list_lock);
/* Register the notifier for first cpufreq cooling device */
@@ -797,7 +794,7 @@ void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev)
cpufreq_unregister_notifier(&thermal_cpufreq_notifier_block,
CPUFREQ_POLICY_NOTIFIER);
- thermal_cooling_device_unregister(cpufreq_cdev->cdev);
+ thermal_cooling_device_unregister(cdev);
ida_simple_remove(&cpufreq_ida, cpufreq_cdev->id);
kfree(cpufreq_cdev->idle_time);
kfree(cpufreq_cdev->freq_table);
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH - resend 1/3] thermal/drivers/cpu_cooling: Fixup the header and copyright
2019-04-28 9:51 [PATCH - resend 1/3] thermal/drivers/cpu_cooling: Fixup the header and copyright Daniel Lezcano
2019-04-28 9:51 ` [PATCH - resend 2/3] thermal/drivers/cpu_cooling: Add Software Package Data Exchange (SPDX) Daniel Lezcano
2019-04-28 9:51 ` [PATCH - resend 3/3] thermal/drivers/cpu_cooling: Remove pointless field Daniel Lezcano
@ 2019-04-29 5:43 ` Viresh Kumar
2019-04-29 8:37 ` Daniel Lezcano
2019-04-29 8:40 ` [PATCH - resend] " Daniel Lezcano
2019-05-11 19:25 ` [PATCH - resend 1/3] " Eduardo Valentin
3 siblings, 2 replies; 7+ messages in thread
From: Viresh Kumar @ 2019-04-29 5:43 UTC (permalink / raw)
To: Daniel Lezcano
Cc: edubezval, rui.zhang, linux-kernel, linux-pm,
Amit Daniel Kachhap, Javi Merino
On 28-04-19, 11:51, Daniel Lezcano wrote:
> The copyright format does not conform to the format requested by
> Linaro: https://wiki.linaro.org/Copyright
>
> Fix it.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
> Viresh Kumar <viresh.kumar@linaro.org>
What exactly have I done here ? :)
> ---
> drivers/thermal/cpu_cooling.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
> index ee8419a6390c..42aeb9087cab 100644
> --- a/drivers/thermal/cpu_cooling.c
> +++ b/drivers/thermal/cpu_cooling.c
> @@ -2,9 +2,11 @@
> * linux/drivers/thermal/cpu_cooling.c
> *
> * Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com)
> - * Copyright (C) 2012 Amit Daniel <amit.kachhap@linaro.org>
> *
> - * Copyright (C) 2014 Viresh Kumar <viresh.kumar@linaro.org>
> + * Copyright (C) 2012-2018 Linaro Limited.
> + *
> + * Authors: Amit Daniel <amit.kachhap@linaro.org>
> + * Viresh Kumar <viresh.kumar@linaro.org>
> *
> * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> * This program is free software; you can redistribute it and/or modify
> --
> 2.17.1
--
viresh
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH - resend 1/3] thermal/drivers/cpu_cooling: Fixup the header and copyright
2019-04-29 5:43 ` [PATCH - resend 1/3] thermal/drivers/cpu_cooling: Fixup the header and copyright Viresh Kumar
@ 2019-04-29 8:37 ` Daniel Lezcano
2019-04-29 8:40 ` [PATCH - resend] " Daniel Lezcano
1 sibling, 0 replies; 7+ messages in thread
From: Daniel Lezcano @ 2019-04-29 8:37 UTC (permalink / raw)
To: Viresh Kumar
Cc: edubezval, rui.zhang, linux-kernel, linux-pm,
Amit Daniel Kachhap, Javi Merino
On 29/04/2019 07:43, Viresh Kumar wrote:
> On 28-04-19, 11:51, Daniel Lezcano wrote:
>> The copyright format does not conform to the format requested by
>> Linaro: https://wiki.linaro.org/Copyright
>>
>> Fix it.
>>
>> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
>> Viresh Kumar <viresh.kumar@linaro.org>
>
> What exactly have I done here ? :)
Argh!
Thanks for spotting it.
>> ---
>> drivers/thermal/cpu_cooling.c | 6 ++++--
>> 1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
>> index ee8419a6390c..42aeb9087cab 100644
>> --- a/drivers/thermal/cpu_cooling.c
>> +++ b/drivers/thermal/cpu_cooling.c
>> @@ -2,9 +2,11 @@
>> * linux/drivers/thermal/cpu_cooling.c
>> *
>> * Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com)
>> - * Copyright (C) 2012 Amit Daniel <amit.kachhap@linaro.org>
>> *
>> - * Copyright (C) 2014 Viresh Kumar <viresh.kumar@linaro.org>
>> + * Copyright (C) 2012-2018 Linaro Limited.
>> + *
>> + * Authors: Amit Daniel <amit.kachhap@linaro.org>
>> + * Viresh Kumar <viresh.kumar@linaro.org>
>> *
>> * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> * This program is free software; you can redistribute it and/or modify
>> --
>> 2.17.1
>
--
<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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH - resend] thermal/drivers/cpu_cooling: Fixup the header and copyright
2019-04-29 5:43 ` [PATCH - resend 1/3] thermal/drivers/cpu_cooling: Fixup the header and copyright Viresh Kumar
2019-04-29 8:37 ` Daniel Lezcano
@ 2019-04-29 8:40 ` Daniel Lezcano
1 sibling, 0 replies; 7+ messages in thread
From: Daniel Lezcano @ 2019-04-29 8:40 UTC (permalink / raw)
To: edubezval, rui.zhang
Cc: linux-kernel, linux-pm, Viresh Kumar, Amit Daniel Kachhap, Javi Merino
The copyright format does not conform to the format requested by
Linaro: https://wiki.linaro.org/Copyright
Fix it.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
---
drivers/thermal/cpu_cooling.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index ee8419a6390c..42aeb9087cab 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -2,9 +2,11 @@
* linux/drivers/thermal/cpu_cooling.c
*
* Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com)
- * Copyright (C) 2012 Amit Daniel <amit.kachhap@linaro.org>
*
- * Copyright (C) 2014 Viresh Kumar <viresh.kumar@linaro.org>
+ * Copyright (C) 2012-2018 Linaro Limited.
+ *
+ * Authors: Amit Daniel <amit.kachhap@linaro.org>
+ * Viresh Kumar <viresh.kumar@linaro.org>
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* This program is free software; you can redistribute it and/or modify
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH - resend 1/3] thermal/drivers/cpu_cooling: Fixup the header and copyright
2019-04-28 9:51 [PATCH - resend 1/3] thermal/drivers/cpu_cooling: Fixup the header and copyright Daniel Lezcano
` (2 preceding siblings ...)
2019-04-29 5:43 ` [PATCH - resend 1/3] thermal/drivers/cpu_cooling: Fixup the header and copyright Viresh Kumar
@ 2019-05-11 19:25 ` Eduardo Valentin
3 siblings, 0 replies; 7+ messages in thread
From: Eduardo Valentin @ 2019-05-11 19:25 UTC (permalink / raw)
To: Daniel Lezcano
Cc: rui.zhang, linux-kernel, linux-pm, Amit Daniel Kachhap,
Viresh Kumar, Javi Merino
On Sun, Apr 28, 2019 at 11:51:03AM +0200, Daniel Lezcano wrote:
> The copyright format does not conform to the format requested by
> Linaro: https://wiki.linaro.org/Copyright
>
> Fix it.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
> Viresh Kumar <viresh.kumar@linaro.org>
Based on the series and other patches of it, I am assuming this is an
Acked-by..
Applied as Acked-by.
> ---
> drivers/thermal/cpu_cooling.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
> index ee8419a6390c..42aeb9087cab 100644
> --- a/drivers/thermal/cpu_cooling.c
> +++ b/drivers/thermal/cpu_cooling.c
> @@ -2,9 +2,11 @@
> * linux/drivers/thermal/cpu_cooling.c
> *
> * Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com)
> - * Copyright (C) 2012 Amit Daniel <amit.kachhap@linaro.org>
> *
> - * Copyright (C) 2014 Viresh Kumar <viresh.kumar@linaro.org>
> + * Copyright (C) 2012-2018 Linaro Limited.
> + *
> + * Authors: Amit Daniel <amit.kachhap@linaro.org>
> + * Viresh Kumar <viresh.kumar@linaro.org>
> *
> * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> * This program is free software; you can redistribute it and/or modify
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-05-11 19:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-28 9:51 [PATCH - resend 1/3] thermal/drivers/cpu_cooling: Fixup the header and copyright Daniel Lezcano
2019-04-28 9:51 ` [PATCH - resend 2/3] thermal/drivers/cpu_cooling: Add Software Package Data Exchange (SPDX) Daniel Lezcano
2019-04-28 9:51 ` [PATCH - resend 3/3] thermal/drivers/cpu_cooling: Remove pointless field Daniel Lezcano
2019-04-29 5:43 ` [PATCH - resend 1/3] thermal/drivers/cpu_cooling: Fixup the header and copyright Viresh Kumar
2019-04-29 8:37 ` Daniel Lezcano
2019-04-29 8:40 ` [PATCH - resend] " Daniel Lezcano
2019-05-11 19:25 ` [PATCH - resend 1/3] " Eduardo Valentin
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.