All of lore.kernel.org
 help / color / mirror / Atom feed
* [QUESTION] The cost of local interrupt enable/disable
@ 2005-09-17 14:00 Tejun Heo
  2005-09-17 14:32 ` Anton Blanchard
  0 siblings, 1 reply; 2+ messages in thread
From: Tejun Heo @ 2005-09-17 14:00 UTC (permalink / raw)
  To: lkml


  Hello, guys.

  I'm curious about the cost of local_irq_enable/disable()'s on various 
architectures.  I found a freebsd discussion thread by googling which 
says that each takes 3 cycles on i386 (very cheap), but for Pentium4, 
people are talking in the order of several hundreds cycles.  Are these 
correct?  How about other architectures?

  TIA.

-- 
tejun

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

* Re: [QUESTION] The cost of local interrupt enable/disable
  2005-09-17 14:00 [QUESTION] The cost of local interrupt enable/disable Tejun Heo
@ 2005-09-17 14:32 ` Anton Blanchard
  0 siblings, 0 replies; 2+ messages in thread
From: Anton Blanchard @ 2005-09-17 14:32 UTC (permalink / raw)
  To: Tejun Heo; +Cc: lkml


Hi,

>  I'm curious about the cost of local_irq_enable/disable()'s on various 
> architectures.  I found a freebsd discussion thread by googling which 
> says that each takes 3 cycles on i386 (very cheap), but for Pentium4, 
> people are talking in the order of several hundreds cycles.  Are these 
> correct?  How about other architectures?

It varies on ppc64, but its in the order of 10s of cycles. 40-50 cycles
is probably a decent estimation.

Anton

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

end of thread, other threads:[~2005-09-17 14:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-17 14:00 [QUESTION] The cost of local interrupt enable/disable Tejun Heo
2005-09-17 14:32 ` Anton Blanchard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.