FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

LinkBack Thread Tools
Old 09-22-2012, 02:28 PM
peter green
Default nacl and CPU frequency.

I'm trying to get nacl built on more architectures in debian, in
particular I want to see it build on arm*.

In order to build successfully nacl needs to determine the CPU frequency
(the CPU frequency determined at build time is not used in the final
binaries afaict but if it's not determined then the build will fail as
it will consider the implementation broken and if it can't find any
non-broken implementations it won't build).

Currently the generic implementations (there are also some CPU specific
implementations) do this by looking at various locations in /proc and
/sys, specifically (in order)


If it fails to find the info in /sys or /proc it then falls back to
trying lsattr and psrinfo but neither of theese seem to exist in current

Unfortunately it seems /sys/devices/cpu/cpu0 doesn't exist on all
systems (even if /sys is mounted) and while /proc/cpuinfo always seems
to exist it doesn't always have CPU frequency information.

Now for my questions (the first is directed at developers in general,
the second is directed at Sergiusz but if others know the answer I
wouldn't mind them asking it)

Is there a portable way of determining CPU frequency in debian?
Do you known how important it is to have an accurate CPU frequency
determination for nacl. e.g. if true CPU frequency can't be determined
would it be ok to use bogomips instead?

To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 505DCB22.70001@p10link.net">http://lists.debian.org/505DCB22.70001@p10link.net

Thread Tools

All times are GMT. The time now is 06:54 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org