nuttx/arch/risc-v/src
ligd 1fb4f8f50e arch: change nxsched_suspend/resume_scheduler() called position
for the citimon stats:

thread 0:                     thread 1:
enter_critical (t0)
up_switch_context
note suspend thread0 (t1)

                              thread running
                              IRQ happen, in ISR:
                                post thread0
                                up_switch_context
                                note resume thread0 (t2)
                                ISR continue f1
                                ISR continue f2
                                ...
                                ISR continue fn

leave_critical (t3)

You will see, the thread 0, critical_section time is:
(t1 - t0) + (t3 - t2)

BUT, this result contains f1 f2 .. fn time spent, it is wrong
to tell user thead0 hold the critical lots of time but actually
not belong to it.

Resolve:
change the nxsched_suspend/resume_scheduler to real hanppends

Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-10 15:31:50 +02:00
..
bl602 clock: Replace all ts and tick conversion functions 2024-09-12 18:14:39 +08:00
bl808 nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
c906 spin_lock: inline spin_lock 2024-07-15 02:29:30 +08:00
cmake cmake:split the archive process to avoid parameter problems 2024-08-18 23:26:01 +08:00
common arch: change nxsched_suspend/resume_scheduler() called position 2024-10-10 15:31:50 +02:00
esp32c3 espressif: Fix MCUboot build on RISC-V and unify linker script 2024-08-21 23:28:45 +08:00
esp32c3-legacy CI: Improvement to speed up compilation and reduce download errors. 2024-09-20 11:26:01 +08:00
esp32c6 espressif: Fix MCUboot build on RISC-V and unify linker script 2024-08-21 23:28:45 +08:00
esp32h2 espressif: Fix MCUboot build on RISC-V and unify linker script 2024-08-21 23:28:45 +08:00
fe310 spin_lock: inline spin_lock 2024-07-15 02:29:30 +08:00
hpm6000 arch/risc-v: initial qemu-rv64ilp32 support 2024-06-14 19:50:00 +08:00
hpm6750 spin_lock: inline spin_lock 2024-07-15 02:29:30 +08:00
jh7110 arch/risc-v: remove g_cpux_idlestack 2024-05-11 17:57:59 +02:00
k210 board/maix-bit: add cmake support 2024-08-24 11:08:25 +08:00
k230 riscv/nsbi: prefer PMP settings in device hook 2024-08-01 23:32:01 +08:00
litex arch/risc-v/src/litex_ticked: Set initial tick count to known value. 2024-09-20 10:51:45 +08:00
mpfs usbdev: extend the usb req len to size_t 2024-08-30 01:32:02 +08:00
nuttsbi riscv/nsbi: halt upon sbi_mexception 2024-08-01 23:32:01 +08:00
opensbi
qemu-rv sched: replace up_cpu_index with this_cpu 2024-09-05 12:09:24 +08:00
rv32m1 style: remove redundant spaces 2024-08-25 19:22:15 +08:00
sg2000 risc-v/bl808, sg2000: Configure MMU to cache Kernel Text, Data and Heap (T-Head C906) 2024-07-17 12:08:04 -03:00
.gitignore
CMakeLists.txt
Makefile mm/kasan: Kasan global support setting alignment length 2024-09-20 21:47:23 +08:00