raiden00pl commented on code in PR #18601:
URL: https://github.com/apache/nuttx/pull/18601#discussion_r2986799632
##########
drivers/can/ctucanfd_pci.c:
##########
@@ -1571,11 +1571,17 @@ static int ctucanfd_interrupt(int irq, FAR void
*context, FAR void *arg)
static void ctucanfd_init(FAR struct ctucanfd_driver_s *priv)
{
+ cpu_set_t cpuset;
+
/* REVISIT: Only legacy IRQ supported in QEMU driver */
priv->irq = pci_get_irq(priv->pcidev);
irq_attach(priv->irq, ctucanfd_interrupt, priv);
+ CPU_ZERO(&cpuset);
+ CPU_SET(up_cpu_index(), &cpuset);
+ up_affinity_irq(priv->irq, cpuset);
Review Comment:
this won't compile if `CONFIG_SMP=n`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]