public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] delete sync.i in ia64_switch_to()
@ 2005-09-07  7:22 Chen, Kenneth W
  2005-09-07  8:00 ` Chen, Kenneth W
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Chen, Kenneth W @ 2005-09-07  7:22 UTC (permalink / raw)
  To: linux-ia64

The sync.i instruction in ia64_switch_to() context switch code
looks like an old leftover code.  sync.i instruction supposedly
ensures flush cache operation issued by processor become visible
to memory reference.  Everywhere I looked where fc instruction is
used (ia64_fc), a sync.i is always accompanied.  Everywhere in
the vicinity of context switch (save_switch_stack/load_switch_stack)
don't have any fc instruction in there.  I don't see any reason why
we need to issue sync.i in context switch code.  Patch to remove it.

Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>


--- ./arch/ia64/kernel/entry.S.orig	2005-09-06 22:36:17.114182129 -0700
+++ ./arch/ia64/kernel/entry.S	2005-09-07 00:20:37.216644505 -0700
@@ -213,10 +213,6 @@ GLOBAL_ENTRY(ia64_switch_to)
 	mov r13=in0			// set "current" pointer
 	;;
 	DO_LOAD_SWITCH_STACK
-
-#ifdef CONFIG_SMP
-	sync.i				// ensure "fc"s done by this CPU are visible on other CPUs
-#endif
 	br.ret.sptk.many rp		// boogie on out in new context
 
 .map:



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-09-07 19:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-07  7:22 [patch] delete sync.i in ia64_switch_to() Chen, Kenneth W
2005-09-07  8:00 ` Chen, Kenneth W
2005-09-07 17:33 ` Jim Hull
2005-09-07 17:59 ` david mosberger
2005-09-07 19:12 ` Chen, Kenneth W

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox