--- zzzz-none-000/linux-2.6.39.4/kernel/irq/irqdesc.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/kernel/irq/irqdesc.c 2021-11-10 13:23:10.000000000 +0000 @@ -7,6 +7,14 @@ * Detailed information is available in Documentation/DocBook/genericirq * */ +/****************************************************************** + + Includes Intel Corporation's changes/modifications dated: 07/2011. + Changed/modified portions - Copyright(c) 2011, Intel Corporation. + +******************************************************************/ + + #include #include #include @@ -14,7 +22,9 @@ #include #include #include - +#ifdef CONFIG_INTEL_IRQ_THREAD_CHANGE_PRIORITY +#include +#endif #include "internals.h" /* @@ -89,6 +99,10 @@ for_each_possible_cpu(cpu) *per_cpu_ptr(desc->kstat_irqs, cpu) = 0; desc_smp_init(desc, node); +#ifdef CONFIG_INTEL_IRQ_THREAD_CHANGE_PRIORITY + desc->sched_priority = MAX_USER_RT_PRIO/2; + desc->policy = SCHED_FIFO; +#endif } int nr_irqs = NR_IRQS; @@ -243,6 +257,11 @@ .lock = __RAW_SPIN_LOCK_UNLOCKED(irq_desc->lock), } }; +#ifdef CONFIG_ARCH_GEN3 +#ifdef CONFIG_SMP +EXPORT_SYMBOL(irq_desc); +#endif +#endif int __init early_irq_init(void) { @@ -270,6 +289,11 @@ { return (irq < NR_IRQS) ? irq_desc + irq : NULL; } +#ifdef CONFIG_ARCH_GEN3 +#ifdef CONFIG_SMP +EXPORT_SYMBOL(irq_to_desc); +#endif +#endif static void free_desc(unsigned int irq) { @@ -309,6 +333,9 @@ bitmap_clear(allocated_irqs, from, cnt); mutex_unlock(&sparse_irq_lock); } +#ifdef CONFIG_ARCH_GEN3 +EXPORT_SYMBOL_GPL(irq_free_descs); +#endif /** * irq_alloc_descs - allocate and initialize a range of irq descriptors @@ -349,6 +376,9 @@ mutex_unlock(&sparse_irq_lock); return ret; } +#ifdef CONFIG_ARCH_GEN3 +EXPORT_SYMBOL_GPL(irq_alloc_descs); +#endif /** * irq_reserve_irqs - mark irqs allocated