lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 27 Feb 2015 09:25:28 +0700
From:	Arseny Solokha <asolokha@...kras.ru>
To:	Benjamin Herrenschmidt <benh@...nel.crashing.org>
Cc:	Paul Mackerras <paulus@...ba.org>,
	Michael Ellerman <mpe@...erman.id.au>,
	Scott Wood <scottwood@...escale.com>,
	<linuxppc-dev@...ts.ozlabs.org>, <linux-kernel@...r.kernel.org>,
	<hongtao.jia@...escale.com>
Subject: Re: [PATCH 4/4] powerpc/mpic: remove unused functions

> @@ -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?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ