| .. | .. |
|---|
| 76 | 76 | { \ |
|---|
| 77 | 77 | unsigned long flags; \ |
|---|
| 78 | 78 | \ |
|---|
| 79 | | - raw_local_irq_save(flags); \ |
|---|
| 79 | + flags = hard_local_irq_save(); \ |
|---|
| 80 | 80 | v->counter = v->counter c_op i; \ |
|---|
| 81 | | - raw_local_irq_restore(flags); \ |
|---|
| 81 | + hard_local_irq_restore(flags); \ |
|---|
| 82 | 82 | } |
|---|
| 83 | 83 | |
|---|
| 84 | 84 | #define ATOMIC_OP_RETURN(op, c_op) \ |
|---|
| .. | .. |
|---|
| 87 | 87 | unsigned long flags; \ |
|---|
| 88 | 88 | int ret; \ |
|---|
| 89 | 89 | \ |
|---|
| 90 | | - raw_local_irq_save(flags); \ |
|---|
| 90 | + flags = hard_local_irq_save(); \ |
|---|
| 91 | 91 | ret = (v->counter = v->counter c_op i); \ |
|---|
| 92 | | - raw_local_irq_restore(flags); \ |
|---|
| 92 | + hard_local_irq_restore(flags); \ |
|---|
| 93 | 93 | \ |
|---|
| 94 | 94 | return ret; \ |
|---|
| 95 | 95 | } |
|---|
| .. | .. |
|---|
| 100 | 100 | unsigned long flags; \ |
|---|
| 101 | 101 | int ret; \ |
|---|
| 102 | 102 | \ |
|---|
| 103 | | - raw_local_irq_save(flags); \ |
|---|
| 103 | + flags = hard_local_irq_save(); \ |
|---|
| 104 | 104 | ret = v->counter; \ |
|---|
| 105 | 105 | v->counter = v->counter c_op i; \ |
|---|
| 106 | | - raw_local_irq_restore(flags); \ |
|---|
| 106 | + hard_local_irq_restore(flags); \ |
|---|
| 107 | 107 | \ |
|---|
| 108 | 108 | return ret; \ |
|---|
| 109 | 109 | } |
|---|