mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
arch: support customized up_cpu_index() in AMP mode
Some app with same code runs on different cores in AMP mode, need the physical core on which the function is called. Signed-off-by: hujun5 <hujun5@xiaomi.com> Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
This commit is contained in:
@@ -628,7 +628,7 @@ static void udp_notify_recvcpu(FAR struct udp_conn_s *conn)
|
||||
return;
|
||||
}
|
||||
|
||||
cpu = up_cpu_index();
|
||||
cpu = this_cpu();
|
||||
if (cpu != conn->rcvcpu)
|
||||
{
|
||||
if (conn->domain == PF_INET)
|
||||
|
||||
Reference in New Issue
Block a user