summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-12-23 12:04:16 +0100
committerIngo Molnar <mingo@elte.hu>2008-12-23 12:45:08 +0100
commit8fb9331391af95ca1f4e5c0a0da8120b13cbae01 (patch)
treea0c0ac8e2dffd562ed023a012db3fd56540e7db6 /kernel
parent94c46572a6d9bb497eda0a14099d9f1360d57d5d (diff)
perfcounters: remove warnings
Impact: remove debug checks Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/perf_counter.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c
index 5431e790b5d6..aab6c123b02c 100644
--- a/kernel/perf_counter.c
+++ b/kernel/perf_counter.c
@@ -861,8 +861,6 @@ static void task_clock_perf_counter_update(struct perf_counter *counter)
atomic64_set(&counter->hw.prev_count, now);
delta = now - prev;
- if (WARN_ON_ONCE(delta < 0))
- delta = 0;
atomic64_add(delta, &counter->count);
}
@@ -906,8 +904,6 @@ static void page_faults_perf_counter_update(struct perf_counter *counter)
atomic64_set(&counter->hw.prev_count, now);
delta = now - prev;
- if (WARN_ON_ONCE(delta < 0))
- delta = 0;
atomic64_add(delta, &counter->count);
}
@@ -954,8 +950,6 @@ static void context_switches_perf_counter_update(struct perf_counter *counter)
atomic64_set(&counter->hw.prev_count, now);
delta = now - prev;
- if (WARN_ON_ONCE(delta < 0))
- delta = 0;
atomic64_add(delta, &counter->count);
}
@@ -1000,8 +994,6 @@ static void cpu_migrations_perf_counter_update(struct perf_counter *counter)
atomic64_set(&counter->hw.prev_count, now);
delta = now - prev;
- if (WARN_ON_ONCE(delta < 0))
- delta = 0;
atomic64_add(delta, &counter->count);
}