PageRenderTime 34ms CodeModel.GetById 18ms app.highlight 12ms RepoModel.GetById 1ms app.codeStats 0ms

/haveged-1.3_ppc.patch

#
Patch | 49 lines | 45 code | 4 blank | 0 comment | 0 complexity | fa2cc63228579f51a71d93459cc7b2b5 MD5 | raw file
Possible License(s): GPL-3.0
 1diff -rupN haveged-1.3/configure haveged-1.3_patch/configure
 2--- haveged-1.3/configure	2011-10-25 01:06:27.000000000 +0200
 3+++ haveged-1.3_patch/configure	2011-11-05 19:42:58.122471139 +0100
 4@@ -4564,7 +4564,7 @@ case "$host" in
 5     HA_CPPFLAGS="-DHAVE_ISA_IA64"
 6  ;;
 7 
 8- powerpc-*|pcc-*|powerpc64|ppc64)
 9+ powerpc-*|ppc-*|powerpc64-*|ppc64-*)
10     HA_CPPFLAGS="-DHAVE_ISA_PPC"
11  ;;
12 
13diff -rupN haveged-1.3/configure.ac haveged-1.3_patch/configure.ac
14--- haveged-1.3/configure.ac	2011-10-25 01:06:27.000000000 +0200
15+++ haveged-1.3_patch/configure.ac	2011-11-05 19:42:34.956557994 +0100
16@@ -81,7 +81,7 @@ case "$host" in
17     HA_CPPFLAGS="-DHAVE_ISA_IA64"
18  ;;
19 
20- powerpc-*|pcc-*|powerpc64|ppc64)
21+ powerpc-*|ppc-*|powerpc64-*|ppc64-*)
22     HA_CPPFLAGS="-DHAVE_ISA_PPC"
23  ;;
24 
25diff -rupN haveged-1.3/ent/test.sh haveged-1.3_patch/ent/test.sh
26--- haveged-1.3/ent/test.sh	2011-10-25 01:06:27.000000000 +0200
27+++ haveged-1.3_patch/ent/test.sh	2011-11-05 20:31:24.368879277 +0100
28@@ -1,5 +1,9 @@
29 #!/bin/sh
30 cd ent
31+echo "./entest -t"
32 ./entest -t
33+echo "../src/haveged -n 16384k -v 1 $*"
34 ../src/haveged -n 16384k -v 1 $*
35+echo "./entest -vf sample"
36 ./entest -vf sample
37+
38diff -rupN haveged-1.3/src/havege.c haveged-1.3_patch/src/havege.c
39--- haveged-1.3/src/havege.c	2011-10-25 01:06:28.000000000 +0200
40+++ haveged-1.3_patch/src/havege.c	2011-11-06 01:20:49.054095370 +0100
41@@ -74,7 +74,7 @@ static int cache_configure(void)
42    else p[0]  = 0;
43    if (!strcmp(info.vendor,"amd") && configure_amd())
44       ;
45-   else if (configure_intel(p[0]))
46+   else if (!strcmp(info.vendor,"intel") && configure_intel(p[0]))
47       ;
48    else {
49       info.generic = 1;