From: catalin.marinas@arm.com (Catalin Marinas)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v10 1/4] arm64: topology: Implement basic CPU topology support
Date: Fri, 10 Jan 2014 17:45:59 +0000 [thread overview]
Message-ID: <20140110174558.GI925@arm.com> (raw)
In-Reply-To: <1389287106-29979-2-git-send-email-broonie@kernel.org>
On Thu, Jan 09, 2014 at 05:05:03PM +0000, Mark Brown wrote:
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index dd4327f09ba4..8feef9cb65df 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -163,6 +163,30 @@ config SMP
>
> If you don't know what to do here, say N.
>
> +config ARM_CPU_TOPOLOGY
Nitpicks: please use just CPU_TOPOLOGY.
> diff --git a/arch/arm64/include/asm/topology.h b/arch/arm64/include/asm/topology.h
> new file mode 100644
> index 000000000000..58b8b84adcd2
> --- /dev/null
> +++ b/arch/arm64/include/asm/topology.h
> @@ -0,0 +1,39 @@
> +#ifndef _ASM_ARM_TOPOLOGY_H
> +#define _ASM_ARM_TOPOLOGY_H
We tend to stick to __ASM_TOPOLOGY_H like guards under arch/arm64.
> +
> +#ifdef CONFIG_ARM_CPU_TOPOLOGY
> +
> +#include <linux/cpumask.h>
> +
> +struct cputopo_arm {
> + int thread_id;
> + int core_id;
> + int socket_id;
> + cpumask_t thread_sibling;
> + cpumask_t core_sibling;
> +};
And you could rename this structure to just cpu_topology.
The patches seem fine otherwise, apart from the last one which I
won't merge until we get some real numbers.
I would like to get an ack or reviewed-by from Lorenzo (and possibly
Mark Rutland) but it is pretty late for the 3.14 merging window so it
will have to be queued for 3.15.
Thanks for putting the effort into preparing these patches.
--
Catalin
next prev parent reply other threads:[~2014-01-10 17:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-09 17:05 [PATCH v10 0/4] arm64 topology Mark Brown
2014-01-09 17:05 ` [PATCH v10 1/4] arm64: topology: Implement basic CPU topology support Mark Brown
2014-01-10 17:45 ` Catalin Marinas [this message]
2014-01-10 18:27 ` Mark Brown
2014-01-13 15:50 ` Catalin Marinas
2014-01-13 19:21 ` Mark Brown
2014-01-09 17:05 ` [PATCH v10 2/4] arm64: topology: Add support for topology DT bindings Mark Brown
2014-01-09 17:44 ` Lorenzo Pieralisi
2014-01-09 18:18 ` Mark Brown
2014-01-09 17:05 ` [PATCH v10 3/4] arm64: topology: Tell the scheduler about the relative power of cores Mark Brown
2014-01-09 17:05 ` [PATCH v10 4/4] arm64: topology: Provide relative power numbers for cores Mark Brown
2014-01-14 1:16 ` Paul Walmsley
2014-01-14 13:43 ` Mark Brown
2014-01-14 19:16 ` Mark Brown
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=20140110174558.GI925@arm.com \
--to=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).