From: Ingo Molnar <mingo@elte.hu>
To: Ben Hutchings <bhutchings@solarflare.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org,
Vegard Nossum <vegard.nossum@gmail.com>
Subject: Re: [PATCH] cputopology: Always define CPU topology information [5th try]
Date: Fri, 13 Jun 2008 13:02:36 +0200 [thread overview]
Message-ID: <20080613110236.GA9867@elte.hu> (raw)
In-Reply-To: <20080613101539.GV11300@solarflare.com>
* Ben Hutchings <bhutchings@solarflare.com> wrote:
> > > This patch:
> > >
> > > - Adds default definitions of the 4 topology macros to <linux/topology.h>
> > > - Changes drivers/base/topology.c to use the topology macros unconditionally
> > > - Updates documentation accordingly
> >
> > applied to tip/core/topology - thanks Ben.
>
> Unfortunately you lost the first paragraph of the commit message, then
> created a second commit (difference between 4th and 5th versions) with
> your own commit message and me as the author. Maybe it's nitpicking
> but I would prefer to have strictly accurate metadata in the commit
> log.
that's OK, see the delta patch below, it's rather trivial. It's better
to do these small delta patches where each change stands on its own than
to review a more complex combo patch. (Suggest me any other commit
metadata for this delta if you prefer, we can still change it.)
Ingo
-------------->
commit 131b943ae643b1ad6febd67cdbb31d955706ecf4
Author: Ben Hutchings <bhutchings@solarflare.com>
Date: Thu Jun 5 17:37:15 2008 +0100
cputopology: always define CPU topology information, clean up
simplify drivers/base/topology.c a bit.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
diff --git a/drivers/base/topology.c b/drivers/base/topology.c
index 24d29a9..f0cb270 100644
--- a/drivers/base/topology.c
+++ b/drivers/base/topology.c
@@ -59,16 +59,14 @@ static ssize_t show_cpumap(int type, cpumask_t *mask, char *buf)
static inline ssize_t show_##name(struct sys_device *dev, char *buf) \
{ \
unsigned int cpu = dev->id; \
- cpumask_t siblings = topology_##name(cpu); \
- return show_cpumap(0, &siblings, buf); \
+ return show_cpumap(0, &(topology_##name(cpu)), buf); \
}
#define define_siblings_show_list(name) \
static inline ssize_t show_##name##_list(struct sys_device *dev, char *buf) \
{ \
unsigned int cpu = dev->id; \
- cpumask_t siblings = topology_##name(cpu); \
- return show_cpumap(1, &siblings, buf); \
+ return show_cpumap(1, &(topology_##name(cpu)), buf); \
}
#define define_siblings_show_func(name) \
next prev parent reply other threads:[~2008-06-13 11:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-04 15:44 [PATCH] cputopology: Always define CPU topology information [4th try] Ben Hutchings
2008-06-05 4:47 ` Andrew Morton
2008-06-05 12:08 ` Ben Hutchings
2008-06-05 16:28 ` Andrew Morton
2008-06-05 16:37 ` [PATCH] cputopology: Always define CPU topology information [5th try] Ben Hutchings
2008-06-13 5:16 ` Ingo Molnar
2008-06-13 10:15 ` Ben Hutchings
2008-06-13 11:02 ` Ingo Molnar [this message]
2008-06-13 15:36 ` Ben Hutchings
2008-07-16 21:37 ` [PATCH] cputopology: Always define CPU topology information [4th try] Nathan Lynch
2008-07-16 22:49 ` Ben Hutchings
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=20080613110236.GA9867@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=bhutchings@solarflare.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vegard.nossum@gmail.com \
/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.