* Re: [PATCH -next] cpufreq: remove useless INIT_LIST_HEAD()
[not found] <MN2PR10MB40938AC3AE715AD1E6B9A008C1FC9@MN2PR10MB4093.namprd10.prod.outlook.com>
@ 2021-08-16 3:56 ` Viresh Kumar
2021-10-04 6:58 ` Viresh Kumar
1 sibling, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2021-08-16 3:56 UTC (permalink / raw)
To: Han Wang, ionela.voinescu; +Cc: Rafael J . Wysocki, linux-pm, linux-kernel
+Ionela who added this.
On 15-08-21, 21:07, Han Wang wrote:
> list cpu_data_list has been inited staticly through LIST_HEAD,
> so there's no need to call another INIT_LIST_HEAD. Simply remove
> it from cppc_cpufreq_init.
>
> Signed-off-by: Han Wang <zjuwanghan@outlook.com>
> ---
> drivers/cpufreq/cppc_cpufreq.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c
> index d4c27022b..db1719626 100644
> --- a/drivers/cpufreq/cppc_cpufreq.c
> +++ b/drivers/cpufreq/cppc_cpufreq.c
> @@ -741,8 +741,6 @@ static int __init cppc_cpufreq_init(void)
> if ((acpi_disabled) || !acpi_cpc_valid())
> return -ENODEV;
>
> - INIT_LIST_HEAD(&cpu_data_list);
> -
> cppc_check_hisi_workaround();
> cppc_freq_invariance_init();
>
> --
> 2.25.1
--
viresh
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] cpufreq: remove useless INIT_LIST_HEAD()
[not found] <MN2PR10MB40938AC3AE715AD1E6B9A008C1FC9@MN2PR10MB4093.namprd10.prod.outlook.com>
2021-08-16 3:56 ` [PATCH -next] cpufreq: remove useless INIT_LIST_HEAD() Viresh Kumar
@ 2021-10-04 6:58 ` Viresh Kumar
1 sibling, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2021-10-04 6:58 UTC (permalink / raw)
To: Han Wang; +Cc: Rafael J . Wysocki, linux-pm, linux-kernel
On 15-08-21, 21:07, Han Wang wrote:
> list cpu_data_list has been inited staticly through LIST_HEAD,
> so there's no need to call another INIT_LIST_HEAD. Simply remove
> it from cppc_cpufreq_init.
>
> Signed-off-by: Han Wang <zjuwanghan@outlook.com>
> ---
> drivers/cpufreq/cppc_cpufreq.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c
> index d4c27022b..db1719626 100644
> --- a/drivers/cpufreq/cppc_cpufreq.c
> +++ b/drivers/cpufreq/cppc_cpufreq.c
> @@ -741,8 +741,6 @@ static int __init cppc_cpufreq_init(void)
> if ((acpi_disabled) || !acpi_cpc_valid())
> return -ENODEV;
>
> - INIT_LIST_HEAD(&cpu_data_list);
> -
> cppc_check_hisi_workaround();
> cppc_freq_invariance_init();
Applied. Thanks.
--
viresh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-04 6:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <MN2PR10MB40938AC3AE715AD1E6B9A008C1FC9@MN2PR10MB4093.namprd10.prod.outlook.com>
2021-08-16 3:56 ` [PATCH -next] cpufreq: remove useless INIT_LIST_HEAD() Viresh Kumar
2021-10-04 6:58 ` Viresh Kumar
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.