walnux/drivers/wireless
dongjiuzhu1 cfd359141f fs/drivers: Avoid causing a busy loop in the program due to context switching induced by sem_post.
examples:
There are two threads involved: thread A with a priority of 100 and
thread B with a priority of 101. Here's how they interact:

When thread A releases a semaphore, thread B is scheduled to execute
some code and may reacquire the semaphore. If no other tasks are ready,
thread A will be scheduled to run.
This continuous process can lead to a busy loop.

Thread A:                                                   Thread B:

while (nxsem_get_value(&priv->wait, &semcount) >= 0 &&  <---
       semcount <= 0)                                      |  2)context switch
  {                                  1)contex switch       |
    nxsem_post(&priv->wait);         ------------->     run some code and nxsem_wait again
  }

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2025-03-17 10:44:26 +01:00
..
bluetooth fs/drivers: Avoid causing a busy loop in the program due to context switching induced by sem_post. 2025-03-17 10:44:26 +01:00
ieee80211 drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
ieee802154 drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
lpwan drivers/wireless/lpwan/rn2xx3: Fix SERIAL dependency 2025-03-15 13:31:33 +01:00
spirit drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
cc1101.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
CMakeLists.txt drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
gs2200m.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
ISM1_868MHzGFSK100kbps.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
ISM2_433MHzMSK500kbps.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
ISM2_905MHzGFSK250kbps.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
Kconfig drivers/wireles/gs2200m: add NET_TCP dependency to NFS_DONT_BIND_TCP_SOCKET option 2023-07-03 13:32:31 +08:00
Make.defs drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
nrf24l01.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
nrf24l01.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00