packages: xz/xz-parallel.patch - initialize everything in hardware_init (hi...
arekm
arekm at pld-linux.org
Sat Oct 22 23:33:57 CEST 2011
Author: arekm Date: Sat Oct 22 21:33:57 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- initialize everything in hardware_init (hint from upstream author)
---- Files affected:
packages/xz:
xz-parallel.patch (1.3 -> 1.4)
---- Diffs:
================================================================
Index: packages/xz/xz-parallel.patch
diff -u packages/xz/xz-parallel.patch:1.3 packages/xz/xz-parallel.patch:1.4
--- packages/xz/xz-parallel.patch:1.3 Sat Oct 22 23:30:35 2011
+++ packages/xz/xz-parallel.patch Sat Oct 22 23:33:51 2011
@@ -9,23 +9,13 @@
The actual number of threads can be less than
.I threads
if the input file is not big enough
---- xz-5.1.1alpha/src/xz/args.c~ 2011-04-12 12:42:58.000000000 +0200
-+++ xz-5.1.1alpha/src/xz/args.c 2011-10-22 23:12:48.269025567 +0200
-@@ -144,6 +144,8 @@
-
- int c;
-
-+ hardware_threads_set(0);
-+
- while ((c = getopt_long(argc, argv, short_opts, long_opts, NULL))
- != -1) {
- switch (c) {
--- xz/src/xz/hardware.c~ 2011-04-12 12:42:58.000000000 +0200
+++ xz/src/xz/hardware.c 2011-10-22 23:22:28.306650949 +0200
-@@ -139,6 +139,7 @@
+@@ -139,6 +139,8 @@
total_ram = (uint64_t)(ASSUME_RAM) * 1024 * 1024;
// Set the defaults.
++ hardware_threads_set(0);
hardware_memlimit_set(0, true, true, false);
+ hardware_memlimit_set(90, true, false, true);
return;
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/xz/xz-parallel.patch?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list