public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Keith Owens <kaos@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: RFC - freeing up ar.k5
Date: Thu, 16 Sep 2004 22:59:03 +0000	[thread overview]
Message-ID: <19581.1095375543@ocs3.ocs.com.au> (raw)
In-Reply-To: <200409162152.i8GLqwG01566@unix-os.sc.intel.com>

On Thu, 16 Sep 2004 14:52:58 -0700, 
"Luck, Tony" <tony.luck@intel.com> wrote:
>Well, this is what a patch to free up ar.k5 by replacing its use
>with a percpu variable looks like.

And a micro-optimization to add to it.

Index: linux/arch/ia64/kernel/ptrace.c
=================================--- linux.orig/arch/ia64/kernel/ptrace.c	Sat Aug 14 15:38:08 2004
+++ linux/arch/ia64/kernel/ptrace.c	Fri Sep 17 08:53:12 2004
@@ -613,7 +613,7 @@ ia64_flush_fph (struct task_struct *task
 {
 	struct ia64_psr *psr = ia64_psr(ia64_task_regs(task));
 
-	if (ia64_is_local_fpu_owner(task) && psr->mfh) {
+	if (psr->mfh && ia64_is_local_fpu_owner(task)) {
 		psr->mfh = 0;
 		task->thread.flags |= IA64_THREAD_FPH_VALID;
 		ia64_save_fpu(&task->thread.fph[0]);


  reply	other threads:[~2004-09-16 22:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-16 21:52 RFC - freeing up ar.k5 Luck, Tony
2004-09-16 22:59 ` Keith Owens [this message]
2004-09-17 19:43 ` Russ Anderson
2004-09-17 20:48 ` Luck, Tony
2004-09-21  5:10 ` Luck, Tony
2004-10-01 21:35 ` Russ Anderson
2004-10-01 22:46 ` Luck, Tony
2004-10-04  0:06 ` Russ Anderson
2004-10-05 19:20 ` Russ Anderson
2004-10-05 19:27 ` Luck, Tony

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=19581.1095375543@ocs3.ocs.com.au \
    --to=kaos@sgi.com \
    --cc=linux-ia64@vger.kernel.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