lkml.org 
[lkml]   [2015]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 4/4] powerpc/mpic: remove unused functions
    Date
    > @@ -1676,31 +1666,6 @@ void __init mpic_init(struct mpic *mpic)
    > mpic_err_int_init(mpic, MPIC_FSL_ERR_INT);
    > }
    >
    > -void __init mpic_set_clk_ratio(struct mpic *mpic, u32 clock_ratio)
    > -{
    > - u32 v;
    > -
    > - v = mpic_read(mpic->gregs, MPIC_GREG_GLOBAL_CONF_1);
    > - v &= ~MPIC_GREG_GLOBAL_CONF_1_CLK_RATIO_MASK;
    > - v |= MPIC_GREG_GLOBAL_CONF_1_CLK_RATIO(clock_ratio);
    > - mpic_write(mpic->gregs, MPIC_GREG_GLOBAL_CONF_1, v);
    > -}
    > -
    > -void __init mpic_set_serial_int(struct mpic *mpic, int enable)
    > -{
    > - unsigned long flags;
    > - u32 v;
    > -
    > - raw_spin_lock_irqsave(&mpic_lock, flags);
    > - v = mpic_read(mpic->gregs, MPIC_GREG_GLOBAL_CONF_1);
    > - if (enable)
    > - v |= MPIC_GREG_GLOBAL_CONF_1_SIE;
    > - else
    > - v &= ~MPIC_GREG_GLOBAL_CONF_1_SIE;
    > - mpic_write(mpic->gregs, MPIC_GREG_GLOBAL_CONF_1, v);
    > - raw_spin_unlock_irqrestore(&mpic_lock, flags);
    > -}
    > -
    > void mpic_irq_set_priority(unsigned int irq, unsigned int pri)
    > {
    > struct mpic *mpic = mpic_find(irq);

    Thinking about it some more, I wonder whether it makes sense to propagate these
    values through device tree (and refuse to apply them if they are 0), just like
    what timer_group_get_freq() and timer_group_get_irq() in
    arch/powerpc/sysdev/mpic_timer.c do.

    Does it have any real use?


    \
     
     \ /
      Last update: 2015-02-27 03:41    [W:3.099 / U:0.132 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site