diff options
Diffstat (limited to 'drivers/cpufreq')
35 files changed, 35 insertions, 148 deletions
diff --git a/drivers/cpufreq/amd_freq_sensitivity.c b/drivers/cpufreq/amd_freq_sensitivity.c index 6927a8c0e748..e2df9d112106 100644 --- a/drivers/cpufreq/amd_freq_sensitivity.c +++ b/drivers/cpufreq/amd_freq_sensitivity.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * amd_freq_sensitivity.c: AMD frequency sensitivity feedback powersave bias | 3 | * amd_freq_sensitivity.c: AMD frequency sensitivity feedback powersave bias |
3 | * for the ondemand governor. | 4 | * for the ondemand governor. |
@@ -5,10 +6,6 @@ | |||
5 | * Copyright (C) 2013 Advanced Micro Devices, Inc. | 6 | * Copyright (C) 2013 Advanced Micro Devices, Inc. |
6 | * | 7 | * |
7 | * Author: Jacob Shin <jacob.shin@amd.com> | 8 | * Author: Jacob Shin <jacob.shin@amd.com> |
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | */ | 9 | */ |
13 | 10 | ||
14 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 47729a22c159..88e00683eaeb 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c | |||
@@ -1,10 +1,7 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Copyright (C) 2016 Linaro. | 3 | * Copyright (C) 2016 Linaro. |
3 | * Viresh Kumar <viresh.kumar@linaro.org> | 4 | * Viresh Kumar <viresh.kumar@linaro.org> |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | */ | 5 | */ |
9 | 6 | ||
10 | #include <linux/err.h> | 7 | #include <linux/err.h> |
diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index bde28878725b..d2b5f062a07b 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c | |||
@@ -1,12 +1,9 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Copyright (C) 2012 Freescale Semiconductor, Inc. | 3 | * Copyright (C) 2012 Freescale Semiconductor, Inc. |
3 | * | 4 | * |
4 | * Copyright (C) 2014 Linaro. | 5 | * Copyright (C) 2014 Linaro. |
5 | * Viresh Kumar <viresh.kumar@linaro.org> | 6 | * Viresh Kumar <viresh.kumar@linaro.org> |
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | 7 | */ |
11 | 8 | ||
12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 9 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/cpufreq-dt.h b/drivers/cpufreq/cpufreq-dt.h index d5aeea13433e..a5a45b547d0b 100644 --- a/drivers/cpufreq/cpufreq-dt.h +++ b/drivers/cpufreq/cpufreq-dt.h | |||
@@ -1,10 +1,7 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
1 | /* | 2 | /* |
2 | * Copyright (C) 2016 Linaro | 3 | * Copyright (C) 2016 Linaro |
3 | * Viresh Kumar <viresh.kumar@linaro.org> | 4 | * Viresh Kumar <viresh.kumar@linaro.org> |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | */ | 5 | */ |
9 | 6 | ||
10 | #ifndef __CPUFREQ_DT_H__ | 7 | #ifndef __CPUFREQ_DT_H__ |
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 85ff958e01f1..e84bf0eb7239 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * linux/drivers/cpufreq/cpufreq.c | 3 | * linux/drivers/cpufreq/cpufreq.c |
3 | * | 4 | * |
@@ -9,10 +10,6 @@ | |||
9 | * Added handling for CPU hotplug | 10 | * Added handling for CPU hotplug |
10 | * Feb 2006 - Jacob Shin <jacob.shin@amd.com> | 11 | * Feb 2006 - Jacob Shin <jacob.shin@amd.com> |
11 | * Fix handling for CPU hotplug -- affected CPUs | 12 | * Fix handling for CPU hotplug -- affected CPUs |
12 | * | ||
13 | * This program is free software; you can redistribute it and/or modify | ||
14 | * it under the terms of the GNU General Public License version 2 as | ||
15 | * published by the Free Software Foundation. | ||
16 | */ | 13 | */ |
17 | 14 | ||
18 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 15 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index 4268f87e99fc..b66e81c06a57 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * drivers/cpufreq/cpufreq_conservative.c | 3 | * drivers/cpufreq/cpufreq_conservative.c |
3 | * | 4 | * |
@@ -5,10 +6,6 @@ | |||
5 | * (C) 2003 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>. | 6 | * (C) 2003 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>. |
6 | * Jun Nakajima <jun.nakajima@intel.com> | 7 | * Jun Nakajima <jun.nakajima@intel.com> |
7 | * (C) 2009 Alexander Clouter <alex@digriz.org.uk> | 8 | * (C) 2009 Alexander Clouter <alex@digriz.org.uk> |
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | */ | 9 | */ |
13 | 10 | ||
14 | #include <linux/slab.h> | 11 | #include <linux/slab.h> |
diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c index 9d1d9bf02710..4bb054d0cb43 100644 --- a/drivers/cpufreq/cpufreq_governor.c +++ b/drivers/cpufreq/cpufreq_governor.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * drivers/cpufreq/cpufreq_governor.c | 3 | * drivers/cpufreq/cpufreq_governor.c |
3 | * | 4 | * |
@@ -8,10 +9,6 @@ | |||
8 | * (C) 2003 Jun Nakajima <jun.nakajima@intel.com> | 9 | * (C) 2003 Jun Nakajima <jun.nakajima@intel.com> |
9 | * (C) 2009 Alexander Clouter <alex@digriz.org.uk> | 10 | * (C) 2009 Alexander Clouter <alex@digriz.org.uk> |
10 | * (c) 2012 Viresh Kumar <viresh.kumar@linaro.org> | 11 | * (c) 2012 Viresh Kumar <viresh.kumar@linaro.org> |
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License version 2 as | ||
14 | * published by the Free Software Foundation. | ||
15 | */ | 12 | */ |
16 | 13 | ||
17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 14 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/cpufreq_governor.h b/drivers/cpufreq/cpufreq_governor.h index 8463f5def0f5..c56773c25757 100644 --- a/drivers/cpufreq/cpufreq_governor.h +++ b/drivers/cpufreq/cpufreq_governor.h | |||
@@ -1,3 +1,4 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
1 | /* | 2 | /* |
2 | * drivers/cpufreq/cpufreq_governor.h | 3 | * drivers/cpufreq/cpufreq_governor.h |
3 | * | 4 | * |
@@ -8,10 +9,6 @@ | |||
8 | * (C) 2003 Jun Nakajima <jun.nakajima@intel.com> | 9 | * (C) 2003 Jun Nakajima <jun.nakajima@intel.com> |
9 | * (C) 2009 Alexander Clouter <alex@digriz.org.uk> | 10 | * (C) 2009 Alexander Clouter <alex@digriz.org.uk> |
10 | * (c) 2012 Viresh Kumar <viresh.kumar@linaro.org> | 11 | * (c) 2012 Viresh Kumar <viresh.kumar@linaro.org> |
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License version 2 as | ||
14 | * published by the Free Software Foundation. | ||
15 | */ | 12 | */ |
16 | 13 | ||
17 | #ifndef _CPUFREQ_GOVERNOR_H | 14 | #ifndef _CPUFREQ_GOVERNOR_H |
diff --git a/drivers/cpufreq/cpufreq_governor_attr_set.c b/drivers/cpufreq/cpufreq_governor_attr_set.c index 52841f807a7e..66b05a326910 100644 --- a/drivers/cpufreq/cpufreq_governor_attr_set.c +++ b/drivers/cpufreq/cpufreq_governor_attr_set.c | |||
@@ -1,12 +1,9 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Abstract code for CPUFreq governor tunable sysfs attributes. | 3 | * Abstract code for CPUFreq governor tunable sysfs attributes. |
3 | * | 4 | * |
4 | * Copyright (C) 2016, Intel Corporation | 5 | * Copyright (C) 2016, Intel Corporation |
5 | * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 6 | * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> |
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | 7 | */ |
11 | 8 | ||
12 | #include "cpufreq_governor.h" | 9 | #include "cpufreq_governor.h" |
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c index 6b423eebfd5d..dced033875bf 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c | |||
@@ -1,13 +1,10 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * drivers/cpufreq/cpufreq_ondemand.c | 3 | * drivers/cpufreq/cpufreq_ondemand.c |
3 | * | 4 | * |
4 | * Copyright (C) 2001 Russell King | 5 | * Copyright (C) 2001 Russell King |
5 | * (C) 2003 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>. | 6 | * (C) 2003 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>. |
6 | * Jun Nakajima <jun.nakajima@intel.com> | 7 | * Jun Nakajima <jun.nakajima@intel.com> |
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | 8 | */ |
12 | 9 | ||
13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/cpufreq_ondemand.h b/drivers/cpufreq/cpufreq_ondemand.h index 640ea4e97106..1af8e5c4b86f 100644 --- a/drivers/cpufreq/cpufreq_ondemand.h +++ b/drivers/cpufreq/cpufreq_ondemand.h | |||
@@ -1,12 +1,9 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
1 | /* | 2 | /* |
2 | * Header file for CPUFreq ondemand governor and related code. | 3 | * Header file for CPUFreq ondemand governor and related code. |
3 | * | 4 | * |
4 | * Copyright (C) 2016, Intel Corporation | 5 | * Copyright (C) 2016, Intel Corporation |
5 | * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 6 | * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> |
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | 7 | */ |
11 | 8 | ||
12 | #include "cpufreq_governor.h" | 9 | #include "cpufreq_governor.h" |
diff --git a/drivers/cpufreq/cpufreq_performance.c b/drivers/cpufreq/cpufreq_performance.c index dafb679adc58..aaa04dfcacd9 100644 --- a/drivers/cpufreq/cpufreq_performance.c +++ b/drivers/cpufreq/cpufreq_performance.c | |||
@@ -1,13 +1,8 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * linux/drivers/cpufreq/cpufreq_performance.c | 3 | * linux/drivers/cpufreq/cpufreq_performance.c |
3 | * | 4 | * |
4 | * Copyright (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de> | 5 | * Copyright (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de> |
5 | * | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | * | ||
11 | */ | 6 | */ |
12 | 7 | ||
13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/cpufreq_powersave.c b/drivers/cpufreq/cpufreq_powersave.c index 78a651038faf..c143dc237d87 100644 --- a/drivers/cpufreq/cpufreq_powersave.c +++ b/drivers/cpufreq/cpufreq_powersave.c | |||
@@ -1,13 +1,8 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * linux/drivers/cpufreq/cpufreq_powersave.c | 3 | * linux/drivers/cpufreq/cpufreq_powersave.c |
3 | * | 4 | * |
4 | * Copyright (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de> | 5 | * Copyright (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de> |
5 | * | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | * | ||
11 | */ | 6 | */ |
12 | 7 | ||
13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index 08b192eb22c6..f9bcf0f3ea30 100644 --- a/drivers/cpufreq/cpufreq_stats.c +++ b/drivers/cpufreq/cpufreq_stats.c | |||
@@ -1,12 +1,9 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * drivers/cpufreq/cpufreq_stats.c | 3 | * drivers/cpufreq/cpufreq_stats.c |
3 | * | 4 | * |
4 | * Copyright (C) 2003-2004 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>. | 5 | * Copyright (C) 2003-2004 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>. |
5 | * (C) 2004 Zou Nan hai <nanhai.zou@intel.com>. | 6 | * (C) 2004 Zou Nan hai <nanhai.zou@intel.com>. |
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | 7 | */ |
11 | 8 | ||
12 | #include <linux/cpu.h> | 9 | #include <linux/cpu.h> |
diff --git a/drivers/cpufreq/cpufreq_userspace.c b/drivers/cpufreq/cpufreq_userspace.c index bd897e3e134d..cbd81c58cb8f 100644 --- a/drivers/cpufreq/cpufreq_userspace.c +++ b/drivers/cpufreq/cpufreq_userspace.c | |||
@@ -1,14 +1,10 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | 2 | ||
2 | /* | 3 | /* |
3 | * linux/drivers/cpufreq/cpufreq_userspace.c | 4 | * linux/drivers/cpufreq/cpufreq_userspace.c |
4 | * | 5 | * |
5 | * Copyright (C) 2001 Russell King | 6 | * Copyright (C) 2001 Russell King |
6 | * (C) 2002 - 2004 Dominik Brodowski <linux@brodo.de> | 7 | * (C) 2002 - 2004 Dominik Brodowski <linux@brodo.de> |
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | * | ||
12 | */ | 8 | */ |
13 | 9 | ||
14 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/davinci-cpufreq.c b/drivers/cpufreq/davinci-cpufreq.c index 940fe85db97a..3de48ae60c29 100644 --- a/drivers/cpufreq/davinci-cpufreq.c +++ b/drivers/cpufreq/davinci-cpufreq.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * CPU frequency scaling for DaVinci | 3 | * CPU frequency scaling for DaVinci |
3 | * | 4 | * |
@@ -13,10 +14,6 @@ | |||
13 | * Copyright (C) 2007-2008 Texas Instruments, Inc. | 14 | * Copyright (C) 2007-2008 Texas Instruments, Inc. |
14 | * Updated to support OMAP3 | 15 | * Updated to support OMAP3 |
15 | * Rajendra Nayak <rnayak@ti.com> | 16 | * Rajendra Nayak <rnayak@ti.com> |
16 | * | ||
17 | * This program is free software; you can redistribute it and/or modify | ||
18 | * it under the terms of the GNU General Public License version 2 as | ||
19 | * published by the Free Software Foundation. | ||
20 | */ | 17 | */ |
21 | #include <linux/types.h> | 18 | #include <linux/types.h> |
22 | #include <linux/cpufreq.h> | 19 | #include <linux/cpufreq.h> |
diff --git a/drivers/cpufreq/freq_table.c b/drivers/cpufreq/freq_table.c index e7be0af3199f..ded427e0a488 100644 --- a/drivers/cpufreq/freq_table.c +++ b/drivers/cpufreq/freq_table.c | |||
@@ -1,12 +1,8 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * linux/drivers/cpufreq/freq_table.c | 3 | * linux/drivers/cpufreq/freq_table.c |
3 | * | 4 | * |
4 | * Copyright (C) 2002 - 2003 Dominik Brodowski | 5 | * Copyright (C) 2002 - 2003 Dominik Brodowski |
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | */ | 6 | */ |
11 | 7 | ||
12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/gx-suspmod.c b/drivers/cpufreq/gx-suspmod.c index 8f52a06664e3..e97b5733aa24 100644 --- a/drivers/cpufreq/gx-suspmod.c +++ b/drivers/cpufreq/gx-suspmod.c | |||
@@ -1,13 +1,10 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Cyrix MediaGX and NatSemi Geode Suspend Modulation | 3 | * Cyrix MediaGX and NatSemi Geode Suspend Modulation |
3 | * (C) 2002 Zwane Mwaikambo <zwane@commfireservices.com> | 4 | * (C) 2002 Zwane Mwaikambo <zwane@commfireservices.com> |
4 | * (C) 2002 Hiroshi Miura <miura@da-cha.org> | 5 | * (C) 2002 Hiroshi Miura <miura@da-cha.org> |
5 | * All Rights Reserved | 6 | * All Rights Reserved |
6 | * | 7 | * |
7 | * This program is free software; you can redistribute it and/or | ||
8 | * modify it under the terms of the GNU General Public License | ||
9 | * version 2 as published by the Free Software Foundation | ||
10 | * | ||
11 | * The author(s) of this software shall not be held liable for damages | 8 | * The author(s) of this software shall not be held liable for damages |
12 | * of any nature resulting due to the use of this software. This | 9 | * of any nature resulting due to the use of this software. This |
13 | * software is provided AS-IS with no warranties. | 10 | * software is provided AS-IS with no warranties. |
@@ -48,7 +45,6 @@ | |||
48 | * off_duration = (freq * DURATION) / stock_freq | 45 | * off_duration = (freq * DURATION) / stock_freq |
49 | * on_duration = DURATION - off_duration | 46 | * on_duration = DURATION - off_duration |
50 | * | 47 | * |
51 | * | ||
52 | *--------------------------------------------------------------------------- | 48 | *--------------------------------------------------------------------------- |
53 | * | 49 | * |
54 | * ChangeLog: | 50 | * ChangeLog: |
diff --git a/drivers/cpufreq/highbank-cpufreq.c b/drivers/cpufreq/highbank-cpufreq.c index 1608f7105c9f..5a7f6dafcddb 100644 --- a/drivers/cpufreq/highbank-cpufreq.c +++ b/drivers/cpufreq/highbank-cpufreq.c | |||
@@ -1,10 +1,7 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Copyright (C) 2012 Calxeda, Inc. | 3 | * Copyright (C) 2012 Calxeda, Inc. |
3 | * | 4 | * |
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | * | ||
8 | * This driver provides the clk notifier callbacks that are used when | 5 | * This driver provides the clk notifier callbacks that are used when |
9 | * the cpufreq-dt driver changes to frequency to alert the highbank | 6 | * the cpufreq-dt driver changes to frequency to alert the highbank |
10 | * EnergyCore Management Engine (ECME) about the need to change | 7 | * EnergyCore Management Engine (ECME) about the need to change |
diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index 3e17560b1efe..47ccfa6b17b7 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c | |||
@@ -1,9 +1,6 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Copyright (C) 2013 Freescale Semiconductor, Inc. | 3 | * Copyright (C) 2013 Freescale Semiconductor, Inc. |
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | */ | 4 | */ |
8 | 5 | ||
9 | #include <linux/clk.h> | 6 | #include <linux/clk.h> |
diff --git a/drivers/cpufreq/maple-cpufreq.c b/drivers/cpufreq/maple-cpufreq.c index a94355723ef8..f5220b3d4ec5 100644 --- a/drivers/cpufreq/maple-cpufreq.c +++ b/drivers/cpufreq/maple-cpufreq.c | |||
@@ -1,12 +1,9 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Copyright (C) 2011 Dmitry Eremin-Solenikov | 3 | * Copyright (C) 2011 Dmitry Eremin-Solenikov |
3 | * Copyright (C) 2002 - 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org> | 4 | * Copyright (C) 2002 - 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org> |
4 | * and Markus Demleitner <msdemlei@cl.uni-heidelberg.de> | 5 | * and Markus Demleitner <msdemlei@cl.uni-heidelberg.de> |
5 | * | 6 | * |
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | * This driver adds basic cpufreq support for SMU & 970FX based G5 Macs, | 7 | * This driver adds basic cpufreq support for SMU & 970FX based G5 Macs, |
11 | * that is iMac G5 and latest single CPU desktop. | 8 | * that is iMac G5 and latest single CPU desktop. |
12 | */ | 9 | */ |
diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index 68052b74d28f..29643f06a3c3 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * CPU frequency scaling for OMAP using OPP information | 3 | * CPU frequency scaling for OMAP using OPP information |
3 | * | 4 | * |
@@ -8,10 +9,6 @@ | |||
8 | * | 9 | * |
9 | * Copyright (C) 2007-2011 Texas Instruments, Inc. | 10 | * Copyright (C) 2007-2011 Texas Instruments, Inc. |
10 | * - OMAP3/4 support by Rajendra Nayak, Santosh Shilimkar | 11 | * - OMAP3/4 support by Rajendra Nayak, Santosh Shilimkar |
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License version 2 as | ||
14 | * published by the Free Software Foundation. | ||
15 | */ | 12 | */ |
16 | 13 | ||
17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 14 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/pmac32-cpufreq.c b/drivers/cpufreq/pmac32-cpufreq.c index 9b4ce2eb8222..650104d729f3 100644 --- a/drivers/cpufreq/pmac32-cpufreq.c +++ b/drivers/cpufreq/pmac32-cpufreq.c | |||
@@ -1,16 +1,12 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Copyright (C) 2002 - 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org> | 3 | * Copyright (C) 2002 - 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org> |
3 | * Copyright (C) 2004 John Steele Scott <toojays@toojays.net> | 4 | * Copyright (C) 2004 John Steele Scott <toojays@toojays.net> |
4 | * | 5 | * |
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | * | ||
9 | * TODO: Need a big cleanup here. Basically, we need to have different | 6 | * TODO: Need a big cleanup here. Basically, we need to have different |
10 | * cpufreq_driver structures for the different type of HW instead of the | 7 | * cpufreq_driver structures for the different type of HW instead of the |
11 | * current mess. We also need to better deal with the detection of the | 8 | * current mess. We also need to better deal with the detection of the |
12 | * type of machine. | 9 | * type of machine. |
13 | * | ||
14 | */ | 10 | */ |
15 | 11 | ||
16 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/pmac64-cpufreq.c b/drivers/cpufreq/pmac64-cpufreq.c index 1d32a863332d..1af3492a000d 100644 --- a/drivers/cpufreq/pmac64-cpufreq.c +++ b/drivers/cpufreq/pmac64-cpufreq.c | |||
@@ -1,11 +1,8 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Copyright (C) 2002 - 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org> | 3 | * Copyright (C) 2002 - 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org> |
3 | * and Markus Demleitner <msdemlei@cl.uni-heidelberg.de> | 4 | * and Markus Demleitner <msdemlei@cl.uni-heidelberg.de> |
4 | * | 5 | * |
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | * | ||
9 | * This driver adds basic cpufreq support for SMU & 970FX based G5 Macs, | 6 | * This driver adds basic cpufreq support for SMU & 970FX based G5 Macs, |
10 | * that is iMac G5 and latest single CPU desktop. | 7 | * that is iMac G5 and latest single CPU desktop. |
11 | */ | 8 | */ |
diff --git a/drivers/cpufreq/qoriq-cpufreq.c b/drivers/cpufreq/qoriq-cpufreq.c index 71b640c8c1a5..8e436dc75c8b 100644 --- a/drivers/cpufreq/qoriq-cpufreq.c +++ b/drivers/cpufreq/qoriq-cpufreq.c | |||
@@ -1,11 +1,8 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Copyright 2013 Freescale Semiconductor, Inc. | 3 | * Copyright 2013 Freescale Semiconductor, Inc. |
3 | * | 4 | * |
4 | * CPU Frequency Scaling driver for Freescale QorIQ SoCs. | 5 | * CPU Frequency Scaling driver for Freescale QorIQ SoCs. |
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | 6 | */ |
10 | 7 | ||
11 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/s3c2410-cpufreq.c b/drivers/cpufreq/s3c2410-cpufreq.c index b8e5da8e188b..0c4f2ccd7e22 100644 --- a/drivers/cpufreq/s3c2410-cpufreq.c +++ b/drivers/cpufreq/s3c2410-cpufreq.c | |||
@@ -1,13 +1,10 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Copyright (c) 2006-2008 Simtec Electronics | 3 | * Copyright (c) 2006-2008 Simtec Electronics |
3 | * http://armlinux.simtec.co.uk/ | 4 | * http://armlinux.simtec.co.uk/ |
4 | * Ben Dooks <ben@simtec.co.uk> | 5 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 6 | * |
6 | * S3C2410 CPU Frequency scaling | 7 | * S3C2410 CPU Frequency scaling |
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | 8 | */ |
12 | 9 | ||
13 | #include <linux/init.h> | 10 | #include <linux/init.h> |
diff --git a/drivers/cpufreq/s3c2412-cpufreq.c b/drivers/cpufreq/s3c2412-cpufreq.c index b04b6f02bbdc..53385a9ab957 100644 --- a/drivers/cpufreq/s3c2412-cpufreq.c +++ b/drivers/cpufreq/s3c2412-cpufreq.c | |||
@@ -1,13 +1,10 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Copyright 2008 Simtec Electronics | 3 | * Copyright 2008 Simtec Electronics |
3 | * http://armlinux.simtec.co.uk/ | 4 | * http://armlinux.simtec.co.uk/ |
4 | * Ben Dooks <ben@simtec.co.uk> | 5 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 6 | * |
6 | * S3C2412 CPU Frequency scalling | 7 | * S3C2412 CPU Frequency scalling |
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | 8 | */ |
12 | 9 | ||
13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/s3c2416-cpufreq.c b/drivers/cpufreq/s3c2416-cpufreq.c index 5b2db3c6568f..f7ff1ed7fef1 100644 --- a/drivers/cpufreq/s3c2416-cpufreq.c +++ b/drivers/cpufreq/s3c2416-cpufreq.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * S3C2416/2450 CPUfreq Support | 3 | * S3C2416/2450 CPUfreq Support |
3 | * | 4 | * |
@@ -6,10 +7,6 @@ | |||
6 | * based on s3c64xx_cpufreq.c | 7 | * based on s3c64xx_cpufreq.c |
7 | * | 8 | * |
8 | * Copyright 2009 Wolfson Microelectronics plc | 9 | * Copyright 2009 Wolfson Microelectronics plc |
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | */ | 10 | */ |
14 | 11 | ||
15 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
diff --git a/drivers/cpufreq/s3c2440-cpufreq.c b/drivers/cpufreq/s3c2440-cpufreq.c index d2f67b7a20dd..3f772ba8896e 100644 --- a/drivers/cpufreq/s3c2440-cpufreq.c +++ b/drivers/cpufreq/s3c2440-cpufreq.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Copyright (c) 2006-2009 Simtec Electronics | 3 | * Copyright (c) 2006-2009 Simtec Electronics |
3 | * http://armlinux.simtec.co.uk/ | 4 | * http://armlinux.simtec.co.uk/ |
@@ -5,10 +6,6 @@ | |||
5 | * Vincent Sanders <vince@simtec.co.uk> | 6 | * Vincent Sanders <vince@simtec.co.uk> |
6 | * | 7 | * |
7 | * S3C2440/S3C2442 CPU Frequency scaling | 8 | * S3C2440/S3C2442 CPU Frequency scaling |
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | */ | 9 | */ |
13 | 10 | ||
14 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 11 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/s3c24xx-cpufreq-debugfs.c b/drivers/cpufreq/s3c24xx-cpufreq-debugfs.c index 0df87b6480fe..290e3539d03e 100644 --- a/drivers/cpufreq/s3c24xx-cpufreq-debugfs.c +++ b/drivers/cpufreq/s3c24xx-cpufreq-debugfs.c | |||
@@ -1,13 +1,10 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Copyright (c) 2009 Simtec Electronics | 3 | * Copyright (c) 2009 Simtec Electronics |
3 | * http://armlinux.simtec.co.uk/ | 4 | * http://armlinux.simtec.co.uk/ |
4 | * Ben Dooks <ben@simtec.co.uk> | 5 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 6 | * |
6 | * S3C24XX CPU Frequency scaling - debugfs status support | 7 | * S3C24XX CPU Frequency scaling - debugfs status support |
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | 8 | */ |
12 | 9 | ||
13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/s3c24xx-cpufreq.c b/drivers/cpufreq/s3c24xx-cpufreq.c index 3b291a2b0cb3..ed0e713b1b57 100644 --- a/drivers/cpufreq/s3c24xx-cpufreq.c +++ b/drivers/cpufreq/s3c24xx-cpufreq.c | |||
@@ -1,13 +1,10 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Copyright (c) 2006-2008 Simtec Electronics | 3 | * Copyright (c) 2006-2008 Simtec Electronics |
3 | * http://armlinux.simtec.co.uk/ | 4 | * http://armlinux.simtec.co.uk/ |
4 | * Ben Dooks <ben@simtec.co.uk> | 5 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 6 | * |
6 | * S3C24XX CPU Frequency scaling | 7 | * S3C24XX CPU Frequency scaling |
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | 8 | */ |
12 | 9 | ||
13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/s3c64xx-cpufreq.c b/drivers/cpufreq/s3c64xx-cpufreq.c index 0cb9040eca49..37df2d892eb0 100644 --- a/drivers/cpufreq/s3c64xx-cpufreq.c +++ b/drivers/cpufreq/s3c64xx-cpufreq.c | |||
@@ -1,11 +1,8 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Copyright 2009 Wolfson Microelectronics plc | 3 | * Copyright 2009 Wolfson Microelectronics plc |
3 | * | 4 | * |
4 | * S3C64xx CPUfreq Support | 5 | * S3C64xx CPUfreq Support |
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | 6 | */ |
10 | 7 | ||
11 | #define pr_fmt(fmt) "cpufreq: " fmt | 8 | #define pr_fmt(fmt) "cpufreq: " fmt |
diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c index 5b4289460bc9..57e5374592bd 100644 --- a/drivers/cpufreq/s5pv210-cpufreq.c +++ b/drivers/cpufreq/s5pv210-cpufreq.c | |||
@@ -1,12 +1,9 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. | 3 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. |
3 | * http://www.samsung.com | 4 | * http://www.samsung.com |
4 | * | 5 | * |
5 | * CPU frequency scaling for S5PC110/S5PV210 | 6 | * CPU frequency scaling for S5PC110/S5PV210 |
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | 7 | */ |
11 | 8 | ||
12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 9 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/cpufreq/sa1110-cpufreq.c b/drivers/cpufreq/sa1110-cpufreq.c index 66e5fb088ecc..dab54e051c0e 100644 --- a/drivers/cpufreq/sa1110-cpufreq.c +++ b/drivers/cpufreq/sa1110-cpufreq.c | |||
@@ -1,12 +1,9 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * linux/arch/arm/mach-sa1100/cpu-sa1110.c | 3 | * linux/arch/arm/mach-sa1100/cpu-sa1110.c |
3 | * | 4 | * |
4 | * Copyright (C) 2001 Russell King | 5 | * Copyright (C) 2001 Russell King |
5 | * | 6 | * |
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | * Note: there are two erratas that apply to the SA1110 here: | 7 | * Note: there are two erratas that apply to the SA1110 here: |
11 | * 7 - SDRAM auto-power-up failure (rev A0) | 8 | * 7 - SDRAM auto-power-up failure (rev A0) |
12 | * 13 - Corruption of internal register reads/writes following | 9 | * 13 - Corruption of internal register reads/writes following |
diff --git a/drivers/cpufreq/unicore2-cpufreq.c b/drivers/cpufreq/unicore2-cpufreq.c index db62d9844751..707dbc1b7ac8 100644 --- a/drivers/cpufreq/unicore2-cpufreq.c +++ b/drivers/cpufreq/unicore2-cpufreq.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
1 | /* | 2 | /* |
2 | * clock scaling for the UniCore-II | 3 | * clock scaling for the UniCore-II |
3 | * | 4 | * |
@@ -5,10 +6,6 @@ | |||
5 | * | 6 | * |
6 | * Maintained by GUAN Xue-tao <gxt@mprc.pku.edu.cn> | 7 | * Maintained by GUAN Xue-tao <gxt@mprc.pku.edu.cn> |
7 | * Copyright (C) 2001-2010 Guan Xuetao | 8 | * Copyright (C) 2001-2010 Guan Xuetao |
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | */ | 9 | */ |
13 | 10 | ||
14 | #include <linux/err.h> | 11 | #include <linux/err.h> |