public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* global_irq_count vs global_irq_lock
@ 2001-08-16 18:30 kernelkracker
  0 siblings, 0 replies; only message in thread
From: kernelkracker @ 2001-08-16 18:30 UTC (permalink / raw)
  To: linux-kernel

Hello,

This is probably a kernel newbie question so my apologies in advance.

I have a design/implementation question.

global_irq_count is defined as atomic_t whereas globall_irq_lock is
defined as unsigned volatiile int.
Is this by design? or by chance?

Why would you be concerned about reading global_irq_count atomically and
not global_irq_count as it is done is several
functions in linux/arch/i386/irq.c in kernel 2.2.18.

If it is by design, what am I missing.

Please cc me on your respone as I am not on the list.

Take care!


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-08-16 17:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-16 18:30 global_irq_count vs global_irq_lock kernelkracker

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