summaryrefslogtreecommitdiff
path: root/sys/dev/sysmon
diff options
context:
space:
mode:
authorpgoyette <pgoyette@NetBSD.org>2011-06-04 13:26:51 +0000
committerpgoyette <pgoyette@NetBSD.org>2011-06-04 13:26:51 +0000
commit645176952fe36d01d8091d72a0c6bd5a06ef4d57 (patch)
tree6ffc3d4f748a7ab2255de8ecc5dc9bd09da418fe /sys/dev/sysmon
parent880291ef0332cdb6fce0af901b08055bc635c273 (diff)
Remove ability to the value_avg since it no longer exists
Diffstat (limited to 'sys/dev/sysmon')
-rw-r--r--sys/dev/sysmon/swsensor.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/dev/sysmon/swsensor.c b/sys/dev/sysmon/swsensor.c
index f61f7ef2057..71bbdb84698 100644
--- a/sys/dev/sysmon/swsensor.c
+++ b/sys/dev/sysmon/swsensor.c
@@ -1,4 +1,4 @@
-/* $NetBSD: swsensor.c,v 1.8 2011/06/04 02:02:55 pgoyette Exp $ */
+/* $NetBSD: swsensor.c,v 1.9 2011/06/04 13:26:51 pgoyette Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: swsensor.c,v 1.8 2011/06/04 02:02:55 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: swsensor.c,v 1.9 2011/06/04 13:26:51 pgoyette Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -234,7 +234,7 @@ swsensor_init(void *arg)
if (po != NULL && prop_object_type(po) == PROP_TYPE_NUMBER)
sw_sensor_value = prop_number_integer_value(po);
- /* Retrieve any value_{max,min,avg} that might be present */
+ /* Retrieve any value_{max,min} that might be present */
if (pd != NULL) {
po = prop_dictionary_get(pd, "value_max");
if (po != NULL && prop_object_type(po) == PROP_TYPE_NUMBER) {
@@ -249,13 +249,6 @@ swsensor_init(void *arg)
prop_number_integer_value(po);
swsensor_edata.flags |= ENVSYS_FVALID_MIN;
}
-
- po = prop_dictionary_get(pd, "value_avg");
- if (po != NULL && prop_object_type(po) == PROP_TYPE_NUMBER) {
- swsensor_edata.value_avg =
- prop_number_integer_value(po);
- swsensor_edata.flags |= ENVSYS_FVALID_AVG;
- }
}
/* See if this sensor should report percentages vs raw values */