summaryrefslogtreecommitdiffstats
path: root/sys/sys/pmc.h
diff options
context:
space:
mode:
authorfabient <fabient@FreeBSD.org>2010-06-05 23:05:08 +0000
committerfabient <fabient@FreeBSD.org>2010-06-05 23:05:08 +0000
commitd568e764e9e97abcee15781a50ecc37d6773b322 (patch)
tree0fec01ed90652775e9a69936b23d03ff991367b6 /sys/sys/pmc.h
parentf0b6964bba720b81012adeaabfdffd9da631cd8a (diff)
downloadFreeBSD-src-d568e764e9e97abcee15781a50ecc37d6773b322.zip
FreeBSD-src-d568e764e9e97abcee15781a50ecc37d6773b322.tar.gz
Convert pm_runcount to int to correctly check for negative value.
Remove uncessary check for error. Found with: Coverity Prevent(tm) MFC after: 1 month
Diffstat (limited to 'sys/sys/pmc.h')
-rw-r--r--sys/sys/pmc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h
index 9da2cc8..6db8d4e1 100644
--- a/sys/sys/pmc.h
+++ b/sys/sys/pmc.h
@@ -680,7 +680,7 @@ struct pmc {
enum pmc_event pm_event; /* event being measured */
uint32_t pm_flags; /* additional flags PMC_F_... */
struct pmc_owner *pm_owner; /* owner thread state */
- uint32_t pm_runcount; /* #cpus currently on */
+ int pm_runcount; /* #cpus currently on */
enum pmc_state pm_state; /* current PMC state */
/*
OpenPOWER on IntegriCloud