arch, include, sched : Refactor ARCH_GLOBAL_IRQDISABLE related code

Summary:
- ARCH_GLOBAL_IRQDISABLE was initially introduced for LC823450 SMP
- At that time, i.MX6 (quad Cortex-A9) did not use this config
- However, this option is now used for all CPUs which support SMP
- So it's good timing for refactoring the code

Impact:
- Should have no impact because the logic is the same for SMP

Testing:
- Tested with board: spresense:smp, spresense:wifi_smp
- Tested with qemu: esp32-core:smp, maix-bit:smp, sabre-6quad:smp
- Build only: lc823450-xgevk:rndis, sam4cmp-db:nsh

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa
2020-09-02 16:18:25 +09:00
committed by Xiang Xiao
parent 74aec1c424
commit 08c4376606
14 changed files with 6 additions and 120 deletions
-1
View File
@@ -244,7 +244,6 @@ config SPINLOCK
config SPINLOCK_IRQ
bool "Support Spinlocks with IRQ control"
default n
depends on ARCH_GLOBAL_IRQDISABLE
---help---
Enables support for spinlocks with IRQ control. This feature can be
used to protect data in SMP mode.