lkml.org 
[lkml]   [2001]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectglobal_irq_count vs global_irq_lock
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!

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:57    [W:0.275 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site