hujun5

Results 20 issues of hujun5

## Summary we can use g_cpu_lockset to determine whether we are currently in the scheduling lock, and all accesses and modifications to g_cpu_lockset, g_cpu_irqlock, g_cpu_irqset are in the critical section,...

## Summary cpu0 cpu1: user_main signest_test sched_unlock nxsched_merge_pending nxsched_add_readytorun up_cpu_pause arm_sigdeliver enter_critical_section Reason: In the SMP, cpu0 is already in the critical section and waiting for cpu1 to enter the...

purpose: 1 sched_lock is very time-consuming, and reducing its invocations can improve performance. 2 sched_lock is prone to misuse, and narrowing its scope of use is to prevent people from...

## Summary spin_lock: inline spin_lock ## Impact ## Testing test: We can use qemu for testing. compiling make distclean -j20; ./tools/configure.sh -l qemu-armv8a:nsh_smp ;make -j20 running qemu-system-aarch64 -cpu cortex-a53 -smp...

## Summary queue: inline queue ## Impact ## Testing We can use qemu for testing. compiling make distclean -j20; ./tools/configure.sh -l qemu-armv8a:nsh_smp ;make -j20 running qemu-system-aarch64 -cpu cortex-a53 -smp 4...

## Summary dynaminc create g_irqmap to reduce the use of data segments CONFIG_ARCH_NUSER_INTERRUPTS should be one more than the number of IRQs actually used ## Impact none ## Testing ostest

## Summary In the SMP, when a context switch occurs, restore_critical_section is executed. In order to reduce the time taken for context switching, we inline the restore_critical_section function and we...

## Summary If the type of tcb is TSTATE_TASK_ASSIGNED, removing it using nxsched_remove_not_running and then putting it back into the queue may result in a context switch. ## Impact ##...

## Summary In some non-irq scenarios, we can simplify the implementation of critical sections to improve performance. ## Impact ## Testing Configuring NuttX and compile: $ ./tools/configure.sh -l qemu-armv8a:nsh_smp $...

## Summary In the kernel, we are planning to remove all occurrences of up_cpu_pause as one of the steps to simplify the implementation of critical sections. The goal is to...

Area: OS Components
Size: S