irq_set_affinity_notifier 是一个在 Linux 内核中用于设置 IRQ(中断请求)亲和性通知器的函数。它允许内核或驱动程序在 IRQ 的 CPU 亲和性发生变化时注册一个回调函数,以便执行特定的操作。 1. irq_set_affinity_notifier 函数的作用 irq_set_affinity_notifier 的主要作用是允许开发者为特定的 IRQ 注册一个通知...
staticint__cpuinits5p_ehci_cpu_notify(struct notifier_block *self,unsignedlongaction,void*hcpu){intcpu = (unsignedlong)hcpu;if(!s5p_ehci_irq_no || cpu != s5p_ehci_irq_cpu)gotoexit;switch(action) {caseCPU_ONLINE:caseCPU_DOWN_FAILED:caseCPU_ONLINE_FROZEN:irq_set_affinity(s5p_ehci_ir...
0) | __irq_set_affinity() { 0) 0.438 us | irq_to_desc(); 0) 0.667 us | _raw_spin_lock_irqsave(); 0) | irq_set_affinity_locked() { 0) | irq_do_set_affinity() { 0) | msi_domain_set_affinity() { 0) | its_set_affinity() { 0) 0.625 us | its_dec_lpi_count.isra...
cpumask_copy(irq->mask, affinity); irq_set_affinity_and_hint(irq->irqn, irq->mask); irq_set_affinity_and_hint(irq->map.virq, irq->mask); } irq->pool = pool; irq->refcount = 1; irq->index = i; err = xa_err(xa_store(&pool->irqs, irq->index, irq, GFP_KERNEL)); ...
{ int count, i, node = first_online_node; struct irq_desc *desc; init_irq_default_affinity(); printk(KERN_INFO "NR_IRQS:%d\n", NR_IRQS); desc = irq_desc; count = ARRAY_SIZE(irq_desc); printk("~~~ %s() irq_desc count:%d, call desc_set_defaults()\n", \ __func__, ...
Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your...
init_irq_default_affinity(); printk(KERN_INFO"NR_IRQS:%d\n", NR_IRQS); desc = irq_desc; count = ARRAY_SIZE(irq_desc); printk("~~~ %s() irq_desc count:%d, call desc_set_defaults()\n", \ __func__, count);for(i =0; i < count; i++) { ...