From: Julien Grall <julien.grall@linaro.org>
To: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@globallogic.com>
Cc: Stefano Stabellini <stefano.stabellini@citrix.com>,
Tim Deegan <tim@xen.org>, Ian Campbell <ian.campbell@citrix.com>,
xen-devel <xen-devel@lists.xen.org>
Subject: Re: [RFC PATCH v3 07/12] arch/arm: create device tree nodes for hwdom cpufreq cpu driver
Date: Mon, 27 Oct 2014 13:15:48 +0000 [thread overview]
Message-ID: <544E4584.30003@linaro.org> (raw)
In-Reply-To: <CAN58jitXSp7bpnN7xVCXL1=k+8devhZC+QTPQOfgJmGbDOQx2w@mail.gmail.com>
Hi Oleksandr,
On 10/27/2014 10:52 AM, Oleksandr Dmytryshyn wrote:
> On Fri, Oct 24, 2014 at 1:24 PM, Oleksandr Dmytryshyn
> <oleksandr.dmytryshyn@globallogic.com> wrote:
>> On Thu, Oct 23, 2014 at 6:49 PM, Julien Grall <julien.grall@linaro.org> wrote:
>>>> +
>>>> + DPRINT("Copy %s node to the pcpus\n", node_name);
>>>> +
>>>> + res = fdt_begin_node(fdt, node_name);
>>>> + if ( res )
>>>> + return res;
>>>> +
>>>> + dt_for_each_property_node( npcpu, pp )
>>>> + {
>>>> + if ( pp->length )
>>>> + {
>>>> + res = fdt_property(fdt, pp->name, pp->value,
>>>> + pp->length);
>>>> + if ( res )
>>>> + return res;
>>>> + }
>>>> + }
>>>> +
>>>
>>> You can use write_properties to replace this loop.
>> I'll try to do this in the next patch set.
> It is better to keep this loop because write_properties() replaces only loop
> and this function contains additional checkings.
Those checking are only for the "chosen" node. This function is used in
place where we have to copy properties in DOM0 DT. Not sure why you
think it would not fit here?
BTW, we plan to rework this function for Xen 4.6. The function will
likely look like to your open loop.
> Also this function passes
> kernel_info * parameter which is absent in the function make_hypervisor_node().
> kinfo->fdt is passed as the parameter to the the function
> make_hypervisor_node().
The prototype of make_hypervisor_node is not set in stone :).
It's perfectly fine to pass kinfo in parameter.
Regards,
--
Julien Grall
next prev parent reply other threads:[~2014-10-27 13:15 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-23 15:07 [RFC PATCH v3 00/12]xen_cpufreq implementation in Xen hypervisor Oleksandr Dmytryshyn
2014-10-23 15:07 ` [RFC PATCH v3 01/12] cpufreq: move cpufreq.h file to the xen/include/xen location Oleksandr Dmytryshyn
2014-10-23 15:07 ` [RFC PATCH v3 02/12] pm: move processor_perf.h " Oleksandr Dmytryshyn
2014-10-23 15:07 ` [RFC PATCH v3 03/12] pmstat: move pmstat.c file to the xen/drivers/pm/stat.c location Oleksandr Dmytryshyn
2014-10-23 15:07 ` [RFC PATCH v3 04/12] cpufreq: make turbo settings to be configurable Oleksandr Dmytryshyn
2014-10-23 15:07 ` [RFC PATCH v3 05/12] pmstat: make pmstat functions more generalizable Oleksandr Dmytryshyn
2014-10-23 15:07 ` [RFC PATCH v3 06/12] cpufreq: make cpufreq driver " Oleksandr Dmytryshyn
2014-10-23 15:07 ` [RFC PATCH v3 07/12] arch/arm: create device tree nodes for hwdom cpufreq cpu driver Oleksandr Dmytryshyn
2014-10-23 15:49 ` Julien Grall
2014-10-24 10:24 ` Oleksandr Dmytryshyn
2014-10-27 10:52 ` Oleksandr Dmytryshyn
2014-10-27 13:15 ` Julien Grall [this message]
2014-10-27 13:32 ` Oleksandr Dmytryshyn
2014-10-23 15:07 ` [RFC PATCH v3 08/12] xsm: enable xsm_platform_op hook for all architectures Oleksandr Dmytryshyn
2014-10-23 16:11 ` Julien Grall
2014-10-24 10:24 ` Oleksandr Dmytryshyn
2014-10-24 10:27 ` Oleksandr Dmytryshyn
2014-10-24 11:38 ` Julien Grall
2014-10-23 15:07 ` [RFC PATCH v3 09/12] xen: arm: implement platform hypercall Oleksandr Dmytryshyn
2014-10-23 15:07 ` [RFC PATCH v3 10/12] cpufreq: add hwdom-cpufreq driver Oleksandr Dmytryshyn
2014-10-23 16:42 ` Julien Grall
2014-10-24 10:30 ` Oleksandr Dmytryshyn
2014-10-24 11:45 ` Julien Grall
2014-10-24 13:05 ` Oleksandr Dmytryshyn
2014-10-24 13:08 ` Julien Grall
2014-10-27 13:29 ` Oleksandr Dmytryshyn
2014-10-23 15:07 ` [RFC PATCH v3 11/12] xen: arm: implement XEN_SYSCTL_cpufreq_op Oleksandr Dmytryshyn
2014-10-23 16:27 ` Julien Grall
2014-10-24 10:37 ` Oleksandr Dmytryshyn
2014-10-26 17:41 ` Stefano Stabellini
2014-10-27 16:27 ` Oleksandr Dmytryshyn
2014-10-23 15:07 ` [RFC PATCH v3 12/12] xen/arm: enable cpufreq functionality for ARM Oleksandr Dmytryshyn
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=544E4584.30003@linaro.org \
--to=julien.grall@linaro.org \
--cc=ian.campbell@citrix.com \
--cc=oleksandr.dmytryshyn@globallogic.com \
--cc=stefano.stabellini@citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
/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.