Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1385510

Re: [PATCH 08/10] mvebu: Use dev_pm_opp_set_sharing_cpus() to mark OPP tables as shared

From Stephen Boyd <sboyd@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [PATCH 08/10] mvebu: Use dev_pm_opp_set_sharing_cpus() to mark OPP tables as shared
Date 2016-04-23 00:30 +0200
Message-ID <rqRKj-Ux-25@gated-at.bofh.it> (permalink)
References <rqiCR-6mQ-5@gated-at.bofh.it> <rqiMz-6KC-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 04/21, Viresh Kumar wrote:
> @@ -683,10 +678,15 @@ static int __init armada_xp_pmsu_cpufreq_init(void)
>  			clk_put(clk);
>  			return ret;
>  		}
> +
> +		ret = dev_pm_opp_set_sharing_cpus(cpu_dev,
> +				(struct cpumask *) cpumask_of(cpu_dev->id));

This cast doesn't look good. Why are we casting away const?
Shouldn't dev_pm_opp_set_sharing_cpus() take a const mask anyway?

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 08/10] mvebu: Use dev_pm_opp_set_sharing_cpus() to mark OPP tables as shared Viresh Kumar <viresh.kumar@linaro.org> - 2016-04-21 11:10 +0200
  Re: [PATCH 08/10] mvebu: Use dev_pm_opp_set_sharing_cpus() to mark  OPP tables as shared Stephen Boyd <sboyd@codeaurora.org> - 2016-04-23 00:30 +0200

csiph-web