Lines 1-4
Link Here
|
1 |
--- cpuid.c.orig 2016-08-15 03:54:53 UTC |
1 |
--- cpuid.c.orig 2016-11-14 01:57:53 UTC |
2 |
+++ cpuid.c |
2 |
+++ cpuid.c |
3 |
@@ -23,6 +23,8 @@ |
3 |
@@ -23,6 +23,8 @@ |
4 |
#define USE_KERNEL_SCHED_SETAFFINITY |
4 |
#define USE_KERNEL_SCHED_SETAFFINITY |
Lines 18-24
Link Here
|
18 |
|
18 |
|
19 |
#ifdef USE_CPUID_MODULE |
19 |
#ifdef USE_CPUID_MODULE |
20 |
#include <linux/major.h> |
20 |
#include <linux/major.h> |
21 |
@@ -6420,11 +6424,16 @@ real_setup(unsigned int cpu, |
21 |
@@ -6471,11 +6475,16 @@ real_setup(unsigned int cpu, |
22 |
int status; |
22 |
int status; |
23 |
status = syscall(__NR_sched_setaffinity, 0, sizeof(mask), &mask); |
23 |
status = syscall(__NR_sched_setaffinity, 0, sizeof(mask), &mask); |
24 |
#else |
24 |
#else |
Lines 37-43
Link Here
|
37 |
#endif |
37 |
#endif |
38 |
if (status == -1) { |
38 |
if (status == -1) { |
39 |
if (cpu > 0) { |
39 |
if (cpu > 0) { |
40 |
@@ -6539,11 +6548,14 @@ static int real_get (int cpuid |
40 |
@@ -6590,11 +6599,14 @@ static int real_get (int cpuid |
41 |
: "a" (reg), |
41 |
: "a" (reg), |
42 |
"c" (ecx)); |
42 |
"c" (ecx)); |
43 |
} else { |
43 |
} else { |
Lines 55-71
Link Here
|
55 |
if (result == -1) { |
55 |
if (result == -1) { |
56 |
if (quiet) { |
56 |
if (quiet) { |
57 |
return FALSE; |
57 |
return FALSE; |
58 |
@@ -7050,7 +7062,8 @@ main(int argc, |
58 |
@@ -7134,7 +7146,7 @@ main(int argc, |
59 |
}; |
59 |
}; |
60 |
|
60 |
|
61 |
boolean opt_one_cpu = FALSE; |
61 |
boolean opt_one_cpu = FALSE; |
62 |
- boolean opt_inst = FALSE; |
62 |
- boolean opt_inst = FALSE; |
63 |
+ //boolean opt_inst = FALSE; |
63 |
+ boolean opt_inst = TRUE; |
64 |
+ boolean opt_inst = TRUE; |
64 |
boolean opt_kernel = FALSE; |
65 |
boolean opt_kernel = FALSE; |
65 |
boolean opt_raw = FALSE; |
66 |
boolean opt_raw = FALSE; |
66 |
boolean opt_debug = FALSE; |
67 |
boolean opt_debug = FALSE; |
67 |
@@ -7264,7 +7276,8 @@ main(int argc, |
68 |
@@ -7134,7 +7147,8 @@ main(int argc, |
|
|
69 |
} |
68 |
} |
70 |
|
69 |
|
71 |
// Default to -i. So use inst unless -k is specified. |
70 |
// Default to -i. So use inst unless -k is specified. |