/[gentoo-x86]/media-sound/jack-audio-connection-kit/files/jack-audio-connection-kit-sparc-cpuinfo.patch
Gentoo

Contents of /media-sound/jack-audio-connection-kit/files/jack-audio-connection-kit-sparc-cpuinfo.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Sep 14 16:56:22 2008 UTC (6 years, 1 month ago) by bluebird
Branch: MAIN
CVS Tags: HEAD
Stable on sparc, also add a patch to make /proc/cpuinfo parsing work with recent kernels, bug #236230
(Portage version: 2.1.4.4)

1 On Linux/SPARC, /proc/cpuinfo doesn't include "Cpu0Bogo" anymore,
2 use "Cpu0ClkTck" instead to determine the processor speed.
3
4 linux upstream commit 8b99cfb8cc51adae7f5294c8962a026c63100959
5
6 --- old/config/os/gnu-linux/time.c
7 +++ new/config/os/gnu-linux/time.c
8 @@ -152,7 +152,8 @@
9 defined(__x86_64__)
10 ret = sscanf(buf, "cpu MHz : %" SCNu64, &mhz);
11 #elif defined( __sparc__ )
12 - ret = sscanf(buf, "Cpu0Bogo : %" SCNu64, &mhz);
13 + ret = sscanf(buf, "Cpu0ClkTck : %" PRIx16, &mhz);
14 + mhz = mhz / 1000 / 1000; // hz -> mhz
15 #elif defined( __mc68000__ )
16 ret = sscanf(buf, "Clocking: %" SCNu64, &mhz);
17 #elif defined( __s390__ )

  ViewVC Help
Powered by ViewVC 1.1.20