set_bit and clear_bit from asm386/bitops.h

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

 



Hi

I could not find any difference between the functions set_bit and clear_bit.

But it is mentioned in bitops.h file that smp_mb__before_clear_bit() and/or smp_mb__after_clear_bit() shall be called in order to ensure changes are visible on other processors.This is mentioned for bit_clear() function only.

My doubt:
Is it not required to call smp_mb__before_set_bit() and smp_mb__after_set_bit() in case of set_bit() function.
If not why is it not required?

Thank you
-nsmurthy



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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