perf - 向806写数据的任务其中轮询806的可读状态时休眠时间150-200us改为300-400us

This commit is contained in:
罗启宏 2025-04-11 15:07:59 +08:00
parent ac9111a678
commit ef53c30fce
2 changed files with 2 additions and 3 deletions

View File

@ -98,13 +98,12 @@ int xradio_hwio_write(struct sk_buff *skb)
} }
// wait dev enter read state(gpio == 1) // wait dev enter read state(gpio == 1)
delay = jiffies + IO_WAIT_TIME_S * HZ;
while (!ops->read_rw_gpio()) { while (!ops->read_rw_gpio()) {
if (time_after(jiffies, delay)) { if (time_after(jiffies, delay)) {
hwio_printk(XRADIO_DBG_ERROR, "write data wait dev read state faild\n"); hwio_printk(XRADIO_DBG_ERROR, "write data wait dev read state faild\n");
return -1; return -1;
} }
xradio_k_usleep(150); xradio_k_usleep(300);
} }
if (ops->write(skb->data, skb->len)) { if (ops->write(skb->data, skb->len)) {

View File

@ -3,7 +3,7 @@
void xradio_k_usleep(u32 us) void xradio_k_usleep(u32 us)
{ {
#if PLATFORM_LINUX #if PLATFORM_LINUX
usleep_range(us, 200); usleep_range(us, 400);
#endif #endif
} }