From: Christoph Hellwig <hch@lst.de>
To: Bob Nelson <rrnelson@linux.vnet.ibm.com>
Cc: linuxppc <linuxppc-dev@ozlabs.org>,
Andrew Morton <akpm@linuxfoundation.org>,
oprofile <oprofile-list@lists.sourceforge.net>,
Philippe Elie <phil.el@wanadoo.fr>
Subject: Re: [PATCH 1/2] Enable SPU switch notification to detect currently active SPU tasks.
Date: Fri, 13 Jul 2007 12:12:33 +0200 [thread overview]
Message-ID: <20070713101233.GA12426@lst.de> (raw)
In-Reply-To: <1184283940.16584.5.camel@bnelson60.rchland.ibm.com>
On Thu, Jul 12, 2007 at 06:45:40PM -0500, Bob Nelson wrote:
> We would like this patch included in -mm and in 2.6.23.
Do you plan to submit oprofile support aswell? In that case it's fine
otherwise please send it together with the actual oprofile support.
> +static void notify_spus_active(void)
> +{
> + int node;
> + /* Wake up the active spu_contexts. When the awakened processes
> + * see their "notify_active" flag is set, they will call
> + * spu_switch_notify();
> + */
Small style issue, this should be:
int node;
/*
* Wake up the active spu_contexts.
*
* When the awakened processes see their "notify_active" flag is set,
* they will call spu_switch_notify().
*/
> -static inline int spu_stopped(struct spu_context *ctx, u32 * stat)
> +static inline int spu_stopped(struct spu_context *ctx, u32 *stat)
useless (and wrong) reformatting, please remove.
> -static int spu_run_init(struct spu_context *ctx, u32 * npc)
> +static int spu_run_init(struct spu_context *ctx, u32 *npc)
Same here.
> -static int spu_run_fini(struct spu_context *ctx, u32 * npc,
> - u32 * status)
> +static int spu_run_fini(struct spu_context *ctx, u32 *npc,
> + u32 *status)
Same here.
> + if (unlikely(test_bit(SPU_SCHED_NOTIFY_ACTIVE,
> + &ctx->sched_flags))) {
> + clear_bit(SPU_SCHED_NOTIFY_ACTIVE, &ctx->sched_flags);
this should use test_and_clear_bit
next prev parent reply other threads:[~2007-07-13 10:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-12 23:45 [PATCH 1/2] Enable SPU switch notification to detect currently active SPU tasks Bob Nelson
2007-07-13 10:12 ` Christoph Hellwig [this message]
2007-07-13 10:13 ` Christoph Hellwig
2007-07-13 12:34 ` Benjamin Herrenschmidt
2007-07-13 12:45 ` Christoph Hellwig
2007-07-13 13:25 ` Christoph Hellwig
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=20070713101233.GA12426@lst.de \
--to=hch@lst.de \
--cc=akpm@linuxfoundation.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=oprofile-list@lists.sourceforge.net \
--cc=phil.el@wanadoo.fr \
--cc=rrnelson@linux.vnet.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;
as well as URLs for NNTP newsgroup(s).