.. | .. |
---|
77 | 77 | #error SMP is not supported on this platform |
---|
78 | 78 | #endif |
---|
79 | 79 | case 1: |
---|
80 | | - raw_local_irq_save(flags); |
---|
| 80 | + flags = hard_local_irq_save(); |
---|
81 | 81 | ret = *(volatile unsigned char *)ptr; |
---|
82 | 82 | *(volatile unsigned char *)ptr = x; |
---|
83 | | - raw_local_irq_restore(flags); |
---|
| 83 | + hard_local_irq_restore(flags); |
---|
84 | 84 | break; |
---|
85 | 85 | |
---|
86 | 86 | case 4: |
---|
87 | | - raw_local_irq_save(flags); |
---|
| 87 | + flags = hard_local_irq_save(); |
---|
88 | 88 | ret = *(volatile unsigned long *)ptr; |
---|
89 | 89 | *(volatile unsigned long *)ptr = x; |
---|
90 | | - raw_local_irq_restore(flags); |
---|
| 90 | + hard_local_irq_restore(flags); |
---|
91 | 91 | break; |
---|
92 | 92 | #else |
---|
93 | 93 | case 1: |
---|