|
@@ -156,6 +156,8 @@ static void ppro_start(struct op_msrs const * const msrs)
|
|
|
unsigned int low, high;
|
|
|
int i;
|
|
|
|
|
|
+ if (!reset_value)
|
|
|
+ return;
|
|
|
for (i = 0; i < num_counters; ++i) {
|
|
|
if (reset_value[i]) {
|
|
|
CTRL_READ(low, high, msrs, i);
|
|
@@ -171,6 +173,8 @@ static void ppro_stop(struct op_msrs const * const msrs)
|
|
|
unsigned int low, high;
|
|
|
int i;
|
|
|
|
|
|
+ if (!reset_value)
|
|
|
+ return;
|
|
|
for (i = 0; i < num_counters; ++i) {
|
|
|
if (!reset_value[i])
|
|
|
continue;
|