hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
kernel/arch/arm/include/asm/cmpxchg.h
....@@ -77,17 +77,17 @@
7777 #error SMP is not supported on this platform
7878 #endif
7979 case 1:
80
- raw_local_irq_save(flags);
80
+ flags = hard_local_irq_save();
8181 ret = *(volatile unsigned char *)ptr;
8282 *(volatile unsigned char *)ptr = x;
83
- raw_local_irq_restore(flags);
83
+ hard_local_irq_restore(flags);
8484 break;
8585
8686 case 4:
87
- raw_local_irq_save(flags);
87
+ flags = hard_local_irq_save();
8888 ret = *(volatile unsigned long *)ptr;
8989 *(volatile unsigned long *)ptr = x;
90
- raw_local_irq_restore(flags);
90
+ hard_local_irq_restore(flags);
9191 break;
9292 #else
9393 case 1: