Volatile raw spinlock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everybody,

I was reading this article:
	http://www.cs.fsu.edu/~baker/devices/notes/spinlock.html

and I noticed this excerpt:

> If you strip off the debugging extras, and get down to the raw
> spinlock object for the SMP case for the i386, it looks like this:
>
> typedef struct {
>        unsigned int slock;
> } raw_spinlock_t;
>
> Earlier versions of Linux had the raw lock value field slock
> declared as "volatile". Do you know what that means? Why is
> that not done in the 2.6.25 kernel?

But, sadly, the writer doesn't give the answer.
So, obviously, my question is:

Why slock is not declared as "volatile" in the 2.6.25 kernel?

Thank you very much
Luca

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux