From: Andrew Morton <akpm@osdl.org>
To: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: cornelia.huck@de.ibm.com, linux-kernel@vger.kernel.org
Subject: Re: [patch 3/24] s390: channel path measurements.
Date: Wed, 22 Mar 2006 13:26:55 -0800 [thread overview]
Message-ID: <20060322132655.79d85b61.akpm@osdl.org> (raw)
In-Reply-To: <20060322151539.GC5801@skybase.boeblingen.de.ibm.com>
Martin Schwidefsky <schwidefsky@de.ibm.com> wrote:
>
> From: Cornelia Huck <cornelia.huck@de.ibm.com>
>
> [patch 3/24] s390: channel path measurements.
>
> Gather extended measurements for channel paths from the channel subsystem
> and expose them to userspace via a sysfs attribute.
>
> ...
>
> +static void
> +chsc_remove_cmg_attr(struct channel_subsystem *css)
> +{
> + int i;
> +
> + for (i = 0; i <= __MAX_CHPID; i++) {
hm, it's somewhat unusual for MAX_FOO to be inclusive. Usually it means
"greatest possible+1".
you have
struct channel_subsystem {
struct channel_path *chps[__MAX_CHPID + 1];
so I guess it all works..
> +static inline int
> +__chsc_do_secm(struct channel_subsystem *css, int enable, void *page)
This has two callsites. inlining it probably deoptimises things.
> + secm_area->request = (struct chsc_header) {
> + .length = 0x0050,
> + .code = 0x0016,
> + };
gcc tends to generate poor code for this construct.
next prev parent reply other threads:[~2006-03-22 21:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-22 15:15 Martin Schwidefsky
2006-03-22 21:26 ` Andrew Morton [this message]
2006-03-23 9:47 ` Cornelia Huck
2006-03-23 10:19 ` [patch] s390: channel path measurements fixups Cornelia Huck
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=20060322132655.79d85b61.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=cornelia.huck@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=schwidefsky@de.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®