Module: xenomai-head
Branch: master
Commit: 66b60080472142359105a8f2aeb8c2f5d5cecab1
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=66b60080472142359105a8f2aeb8c2f5d5cecab1

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Sep  6 11:32:49 2011 +0200

hal/generic: remove useless rthal_irq_affinity()

---

 include/asm-generic/hal.h |    4 ---
 ksrc/arch/generic/hal.c   |   62 ---------------------------------------------
 2 files changed, 0 insertions(+), 66 deletions(-)

diff --git a/include/asm-generic/hal.h b/include/asm-generic/hal.h
index efb0ef8..940320d 100644
--- a/include/asm-generic/hal.h
+++ b/include/asm-generic/hal.h
@@ -539,10 +539,6 @@ static inline void rthal_apc_schedule(int apc)
        rthal_local_irq_restore(flags);
 }
 
-int rthal_irq_affinity(unsigned irq,
-                      cpumask_t cpumask,
-                      cpumask_t *oldmask);
-
 rthal_trap_handler_t rthal_trap_catch(rthal_trap_handler_t handler);
 
 unsigned long rthal_timer_calibrate(void);
diff --git a/ksrc/arch/generic/hal.c b/ksrc/arch/generic/hal.c
index f7c5ddb..79466f8 100644
--- a/ksrc/arch/generic/hal.c
+++ b/ksrc/arch/generic/hal.c
@@ -295,67 +295,6 @@ int rthal_irq_release(unsigned irq)
  */
 
 /**
- * @fn int rthal_irq_affinity (unsigned irq,cpumask_t cpumask,cpumask_t 
*oldmask)
- *
- * @brief Set/Get processor affinity for external interrupt.
- *
- * On SMP systems, this service ensures that the given interrupt is
- * preferably dispatched to the specified set of processors. The
- * previous affinity mask is returned by this service.
- *
- * @param irq The interrupt source whose processor affinity is
- * affected by the operation. Only external interrupts can have their
- * affinity changed/queried, thus virtual interrupt numbers allocated
- * by rthal_alloc_virq() are invalid values for this parameter.
- *
- * @param cpumask A list of CPU identifiers passed as a bitmask
- * representing the new affinity for this interrupt. A zero value
- * cause this service to return the current affinity mask without
- * changing it.
- *
- * @param oldmask If non-NULL, a pointer to a memory area which will
- * bve overwritten by the previous affinity mask used for this
- * interrupt source, or a zeroed mask if an error occurred.  This
- * service always returns a zeroed mask on uniprocessor systems.
- *
- * @return 0 is returned upon success. Otherwise:
- *
- * - -EINVAL is returned if @a irq is invalid.
- *
- * Environments:
- *
- * This service can be called from:
- *
- * - Linux domain context.
- */
-
-#ifdef CONFIG_SMP
-
-int rthal_irq_affinity(unsigned irq, cpumask_t cpumask, cpumask_t *oldmask)
-{
-    cpumask_t _oldmask;
-
-    if (irq >= IPIPE_NR_XIRQS)
-       return -EINVAL;
-
-    _oldmask = rthal_set_irq_affinity(irq, cpumask);
-
-    if (oldmask)
-       *oldmask = _oldmask;
-
-    return cpus_empty(_oldmask) ? -EINVAL : 0;
-}
-
-#else /* !CONFIG_SMP */
-
-int rthal_irq_affinity(unsigned irq, cpumask_t cpumask, cpumask_t *oldmask)
-{
-    return 0;
-}
-
-#endif /* CONFIG_SMP */
-
-/**
  * @fn int rthal_trap_catch (rthal_trap_handler_t handler)
  *
  * @brief Installs a fault handler.
@@ -845,7 +784,6 @@ EXPORT_SYMBOL_GPL(rthal_irq_disable);
 EXPORT_SYMBOL_GPL(rthal_irq_end);
 EXPORT_SYMBOL_GPL(rthal_irq_host_request);
 EXPORT_SYMBOL_GPL(rthal_irq_host_release);
-EXPORT_SYMBOL_GPL(rthal_irq_affinity);
 EXPORT_SYMBOL_GPL(rthal_trap_catch);
 EXPORT_SYMBOL_GPL(rthal_timer_request);
 EXPORT_SYMBOL_GPL(rthal_timer_release);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to