android_kernel_google_msm/drivers/hv
Jason Wang 4f9e14fad5 drivers: hv: switch to use mb() instead of smp_mb()
commit 35848f68b0 upstream.

Even if guest were compiled without SMP support, it could not assume that host
wasn't. So switch to use mb() instead of smp_mb() to force memory barriers for
UP guest.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[bwh: Backported to 3.2:
 - Drop changes to functions that don't exist here
 - hv_ringbuffer_write() has only a write memory barrier]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
[hq: Backported to 3.4:
 - Add the change in hv_ringbuffer_read]
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-07 16:02:10 -07:00
..
channel.c Drivers: hv: Cleanup error handling in vmbus_open() 2012-10-31 10:02:58 -07:00
channel_mgmt.c drivers: hv: Get rid of some unnecessary code 2012-01-24 12:56:01 -08:00
connection.c
hv.c drivers: hv: Increase the number of VCPUs supported in the guest 2012-02-09 08:32:44 -08:00
hv_kvp.c Tools: hv: Support enumeration from all the pools 2012-03-16 13:36:04 -07:00
hv_util.c drivers: hv: kvp: Move the contents of hv_kvp.h to hyperv.h 2012-02-02 15:30:47 -08:00
hyperv_vmbus.h drivers: hv: Increase the number of VCPUs supported in the guest 2012-02-09 08:32:44 -08:00
Kconfig hv: Add Kconfig menu entry 2011-11-26 17:05:34 -08:00
Makefile
ring_buffer.c drivers: hv: switch to use mb() instead of smp_mb() 2014-06-07 16:02:10 -07:00
vmbus_drv.c drivers: hv: switch to use mb() instead of smp_mb() 2014-06-07 16:02:10 -07:00