Re: RFC - freeing up ar.k5

From: Keith Owens <kaos_at_sgi.com>
Date: 2004-09-17 08:59:03
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]);

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Sep 16 18:59:54 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:30 EST