trace_hardirqs_off -> atomic_inc -> local_irq_restore -> trace_hardirqs_off
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
} else {
unsigned long flags;
} else {
unsigned long flags;
+ raw_local_irq_save(flags);
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
} else {
unsigned long flags;
} else {
unsigned long flags;
+ raw_local_irq_save(flags);
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
} else {
unsigned long flags;
} else {
unsigned long flags;
+ raw_local_irq_save(flags);
result = v->counter;
result += i;
v->counter = result;
result = v->counter;
result += i;
v->counter = result;
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
} else {
unsigned long flags;
} else {
unsigned long flags;
+ raw_local_irq_save(flags);
result = v->counter;
result -= i;
v->counter = result;
result = v->counter;
result -= i;
v->counter = result;
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
} else {
unsigned long flags;
} else {
unsigned long flags;
+ raw_local_irq_save(flags);
result = v->counter;
result -= i;
if (result >= 0)
v->counter = result;
result = v->counter;
result -= i;
if (result >= 0)
v->counter = result;
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
} else {
unsigned long flags;
} else {
unsigned long flags;
+ raw_local_irq_save(flags);
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
} else {
unsigned long flags;
} else {
unsigned long flags;
+ raw_local_irq_save(flags);
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
} else {
unsigned long flags;
} else {
unsigned long flags;
+ raw_local_irq_save(flags);
result = v->counter;
result += i;
v->counter = result;
result = v->counter;
result += i;
v->counter = result;
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
} else {
unsigned long flags;
} else {
unsigned long flags;
+ raw_local_irq_save(flags);
result = v->counter;
result -= i;
v->counter = result;
result = v->counter;
result -= i;
v->counter = result;
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
} else {
unsigned long flags;
} else {
unsigned long flags;
+ raw_local_irq_save(flags);
result = v->counter;
result -= i;
if (result >= 0)
v->counter = result;
result = v->counter;
result -= i;
if (result >= 0)
v->counter = result;
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
a += nr >> SZLONG_LOG;
mask = 1UL << bit;
a += nr >> SZLONG_LOG;
mask = 1UL << bit;
+ raw_local_irq_save(flags);
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
a += nr >> SZLONG_LOG;
mask = 1UL << bit;
a += nr >> SZLONG_LOG;
mask = 1UL << bit;
+ raw_local_irq_save(flags);
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
a += nr >> SZLONG_LOG;
mask = 1UL << bit;
a += nr >> SZLONG_LOG;
mask = 1UL << bit;
+ raw_local_irq_save(flags);
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
a += nr >> SZLONG_LOG;
mask = 1UL << bit;
a += nr >> SZLONG_LOG;
mask = 1UL << bit;
+ raw_local_irq_save(flags);
retval = (mask & *a) != 0;
*a |= mask;
retval = (mask & *a) != 0;
*a |= mask;
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
a += nr >> SZLONG_LOG;
mask = 1UL << bit;
a += nr >> SZLONG_LOG;
mask = 1UL << bit;
+ raw_local_irq_save(flags);
retval = (mask & *a) != 0;
*a &= ~mask;
retval = (mask & *a) != 0;
*a &= ~mask;
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
a += nr >> SZLONG_LOG;
mask = 1UL << bit;
a += nr >> SZLONG_LOG;
mask = 1UL << bit;
+ raw_local_irq_save(flags);
retval = (mask & *a) != 0;
*a ^= mask;
retval = (mask & *a) != 0;
*a ^= mask;
- local_irq_restore(flags);
+ raw_local_irq_restore(flags);
} else {
unsigned long flags;
} else {
unsigned long flags;
+ raw_local_irq_save(flags);
- local_irq_restore(flags); /* implies memory barrier */
+ raw_local_irq_restore(flags); /* implies memory barrier */
} else {
unsigned long flags;
} else {
unsigned long flags;
+ raw_local_irq_save(flags);
- local_irq_restore(flags); /* implies memory barrier */
+ raw_local_irq_restore(flags); /* implies memory barrier */
} else {
unsigned long flags;
} else {
unsigned long flags;
+ raw_local_irq_save(flags);
retval = *m;
if (retval == old)
*m = new;
retval = *m;
if (retval == old)
*m = new;
- local_irq_restore(flags); /* implies memory barrier */
+ raw_local_irq_restore(flags); /* implies memory barrier */
} else {
unsigned long flags;
} else {
unsigned long flags;
+ raw_local_irq_save(flags);
retval = *m;
if (retval == old)
*m = new;
retval = *m;
if (retval == old)
*m = new;
- local_irq_restore(flags); /* implies memory barrier */
+ raw_local_irq_restore(flags); /* implies memory barrier */