Module Name: src Committed By: pgoyette Date: Fri Mar 5 12:44:16 UTC 2010
Modified Files: src/sys/dev/acpi: acpi_tz.c Log Message: As pointed out by Rhialto, "degrees Kelvin" is redundant. So fix a couple of comments related to converstion between Kelvin and degC. To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/sys/dev/acpi/acpi_tz.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/acpi/acpi_tz.c diff -u src/sys/dev/acpi/acpi_tz.c:1.59 src/sys/dev/acpi/acpi_tz.c:1.60 --- src/sys/dev/acpi/acpi_tz.c:1.59 Thu Feb 18 14:10:15 2010 +++ src/sys/dev/acpi/acpi_tz.c Fri Mar 5 12:44:16 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_tz.c,v 1.59 2010/02/18 14:10:15 pgoyette Exp $ */ +/* $NetBSD: acpi_tz.c,v 1.60 2010/03/05 12:44:16 pgoyette Exp $ */ /* * Copyright (c) 2003 Jared D. McNeill <jmcne...@invisible.ca> @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.59 2010/02/18 14:10:15 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.60 2010/03/05 12:44:16 pgoyette Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -63,7 +63,7 @@ /* constants */ #define ATZ_TZP_RATE 300 /* default if no _TZP CM present (30 secs) */ #define ATZ_NLEVELS 10 /* number of cooling levels, from ACPI spec */ -#define ATZ_ZEROC 2732 /* 0C in tenths degrees Kelvin */ +#define ATZ_ZEROC 2732 /* 0C, measured in 0.1 Kelvin */ #define ATZ_TMP_INVALID 0xffffffff /* invalid temperature */ #define ATZ_ZONE_EXPIRE 9000 /* zone info refetch interval (15min) */ @@ -75,8 +75,8 @@ /* * ACPI Temperature Zone information. Note all temperatures are reported - * in tenths of degrees Kelvin, and that the ACPI specification assumes - * that K = C + 273.2 rather than the nominal 273.15 used by envsys(4). + * in 0.1 Kelvin, and that the ACPI specification assumes that + * K = C + 273.2 rather than the nominal 273.15 used by envsys(4). * So define an appropriate conversion. */