Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi Remove bogus assertion that came with revisions...



details:   https://anonhg.NetBSD.org/src/rev/954b1a3aff9e
branches:  trunk
changeset: 770336:954b1a3aff9e
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Thu Oct 13 05:20:45 2011 +0000

description:
Remove bogus assertion that came with revisions 1.55-1.56.

diffstat:

 sys/dev/acpi/acpi_cpu_cstate.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r c12c86fc7ad3 -r 954b1a3aff9e sys/dev/acpi/acpi_cpu_cstate.c
--- a/sys/dev/acpi/acpi_cpu_cstate.c    Wed Oct 12 23:04:22 2011 +0000
+++ b/sys/dev/acpi/acpi_cpu_cstate.c    Thu Oct 13 05:20:45 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_cstate.c,v 1.57 2011/08/06 13:19:46 jruoho Exp $ */
+/* $NetBSD: acpi_cpu_cstate.c,v 1.58 2011/10/13 05:20:45 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010, 2011 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_cstate.c,v 1.57 2011/08/06 13:19:46 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_cstate.c,v 1.58 2011/10/13 05:20:45 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -377,8 +377,6 @@
                goto out;
        }
 
-       KASSERT(type == ACPI_STATE_C1 || cs[type].cs_method == 0);
-
        cs[type].cs_addr = state.cs_addr;
        cs[type].cs_power = state.cs_power;
        cs[type].cs_flags = state.cs_flags;



Home | Main Index | Thread Index | Old Index