Added comments before memory barrier
Signed-off-by: Devendra Sharma <devendra.sharma9091@xxxxxxxxx>
---
drivers/staging/comedi/drivers/dyna_pci10xx.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/staging/comedi/drivers/dyna_pci10xx.c b/drivers/staging/comedi/drivers/dyna_pci10xx.c
index c9eb26f..c3b5236 100644
--- a/drivers/staging/comedi/drivers/dyna_pci10xx.c
+++ b/drivers/staging/comedi/drivers/dyna_pci10xx.c
@@ -122,6 +122,7 @@ static int dyna_pci10xx_insn_write_ao(struct comedi_device *dev,
mutex_lock(&devpriv->mutex);
for (n = 0; n < insn->n; n++) {
+ /*multi-processor memory barrier*/
smp_mb();