|
@@ -142,14 +142,6 @@ static int emulate_swpX(unsigned int address, unsigned int *data,
|
|
|
while (1) {
|
|
|
unsigned long temp;
|
|
|
|
|
|
- /*
|
|
|
- * Barrier required between accessing protected resource and
|
|
|
- * releasing a lock for it. Legacy code might not have done
|
|
|
- * this, and we cannot determine that this is not the case
|
|
|
- * being emulated, so insert always.
|
|
|
- */
|
|
|
- smp_mb();
|
|
|
-
|
|
|
if (type == TYPE_SWPB)
|
|
|
__user_swpb_asm(*data, address, res, temp);
|
|
|
else
|
|
@@ -162,13 +154,6 @@ static int emulate_swpX(unsigned int address, unsigned int *data,
|
|
|
}
|
|
|
|
|
|
if (res == 0) {
|
|
|
- /*
|
|
|
- * Barrier also required between acquiring a lock for a
|
|
|
- * protected resource and accessing the resource. Inserted for
|
|
|
- * same reason as above.
|
|
|
- */
|
|
|
- smp_mb();
|
|
|
-
|
|
|
if (type == TYPE_SWPB)
|
|
|
swpbcounter++;
|
|
|
else
|