Commit 66a05d6b authored by Ingo Molnar's avatar Ingo Molnar

Merge branch 'oprofile-for-tip' of...

Merge branch 'oprofile-for-tip' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile into x86/urgent
parents c36910c1 3d337c65
...@@ -401,14 +401,13 @@ static int __init ppro_init(char **cpu_type) ...@@ -401,14 +401,13 @@ static int __init ppro_init(char **cpu_type)
*cpu_type = "i386/pii"; *cpu_type = "i386/pii";
break; break;
case 6 ... 8: case 6 ... 8:
case 10 ... 11:
*cpu_type = "i386/piii"; *cpu_type = "i386/piii";
break; break;
case 9: case 9:
case 13:
*cpu_type = "i386/p6_mobile"; *cpu_type = "i386/p6_mobile";
break; break;
case 10 ... 13:
*cpu_type = "i386/p6";
break;
case 14: case 14:
*cpu_type = "i386/core"; *cpu_type = "i386/core";
break; break;
......
...@@ -156,6 +156,8 @@ static void ppro_start(struct op_msrs const * const msrs) ...@@ -156,6 +156,8 @@ static void ppro_start(struct op_msrs const * const msrs)
unsigned int low, high; unsigned int low, high;
int i; int i;
if (!reset_value)
return;
for (i = 0; i < num_counters; ++i) { for (i = 0; i < num_counters; ++i) {
if (reset_value[i]) { if (reset_value[i]) {
CTRL_READ(low, high, msrs, i); CTRL_READ(low, high, msrs, i);
...@@ -171,6 +173,8 @@ static void ppro_stop(struct op_msrs const * const msrs) ...@@ -171,6 +173,8 @@ static void ppro_stop(struct op_msrs const * const msrs)
unsigned int low, high; unsigned int low, high;
int i; int i;
if (!reset_value)
return;
for (i = 0; i < num_counters; ++i) { for (i = 0; i < num_counters; ++i) {
if (!reset_value[i]) if (!reset_value[i])
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment