Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1705915
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 2/6] of: Add helper for mapping device node to logical CPU number |
| Date | 2017-08-08 01:40 +0200 |
| Message-ID | <ubZMS-7qT-13@gated-at.bofh.it> (permalink) |
| References | <ubMZj-6zu-7@gated-at.bofh.it> <ubMZk-6zu-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Aug 7, 2017 at 4:52 AM, Suzuki K Poulose <suzuki.poulose@arm.com> wrote: > Add a helper to map a device node to a logical CPU number to avoid > duplication. Currently this is open coded in different places (e.g > gic-v3, coresight). The helper tries to map device node to a "possible" > logical CPU id, which may not be online yet. It is the responsibility > of the user to make sure that the CPU is online. The helper uses > of_get_cpu_node() which uses arch specific backends to match the phyiscal > ids. > > Cc: devicetree@vger.kernel.org > Cc: Frank Rowand <frowand.list@gmail.com> > Cc: Rob Herring <robh+dt@kernel.org> > Cc: Mark Rutland <mark.rutland@arm.com> > Cc: Sudeep Holla <sudeep.holla@arm.com> > Reviewed-by: Marc Zyngier <marc.zyngier@arm.com> > Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> > --- > Changes since V3: > - Renamed the helper to of_cpu_node_to_id(), suggested by Rob > - Return -ENODEV on failure than nr_cpus_id > --- > drivers/of/base.c | 26 ++++++++++++++++++++++++++ > include/linux/of.h | 7 +++++++ > 2 files changed, 33 insertions(+) Reviewed-by: Rob Herring <robh@kernel.org>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v4 2/6] of: Add helper for mapping device node to logical CPU number Suzuki K Poulose <suzuki.poulose@arm.com> - 2017-08-07 12:00 +0200 Re: [PATCH v4 2/6] of: Add helper for mapping device node to logical CPU number Rob Herring <robh@kernel.org> - 2017-08-08 01:40 +0200
csiph-web