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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.1003221521440.3147@localhost.localdomain>
Date:	Mon, 22 Mar 2010 15:22:12 +0100 (CET)
From:	Thomas Gleixner <tglx@...utronix.de>
To:	Johannes Weiner <hannes@...xchg.org>
cc:	Ivan Kokshaysky <ink@...assic.park.msu.ru>,
	john stultz <johnstul@...ibm.com>,
	Richard Henderson <rth@...ddle.net>,
	lkml <linux-kernel@...r.kernel.org>,
	Matt Turner <mattst88@...il.com>
Subject: Re: [RFC][PATCH] Convert alpha to use clocksource

On Mon, 22 Mar 2010, Johannes Weiner wrote:
> > Though, even after a glance over the clocksource code, I've not
> > gotten yet to how one could estimate the "shift" value...
> > Any hints?
> 
> I had the same problem with xtensa and added a comment about what I
> did in there, maybe it helps:
> 
> 	arch/xtensa/kernel/time.c
> 
> I took the upper bound of the multiplicator (nsecs per counter unit)
> and subtracted its logarithm from my available 32 bits.  The result
> is the highest possible shift value that works for the clocksource.

clocks_calc_mult_shift() is what you are looking for.

Thanks,

	tglx
--
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