Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2012 08:46:04 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r239811 - stable/8/sys/dev/acpica
Message-ID:  <201208290846.q7T8k4JL014340@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Wed Aug 29 08:46:04 2012
New Revision: 239811
URL: http://svn.freebsd.org/changeset/base/239811

Log:
  MFC r238192: acpi_cpu_cx_cst: consistently use cpu_cx_count during state
  enumeration

Modified:
  stable/8/sys/dev/acpica/acpi_cpu.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/dev/   (props changed)

Modified: stable/8/sys/dev/acpica/acpi_cpu.c
==============================================================================
--- stable/8/sys/dev/acpica/acpi_cpu.c	Wed Aug 29 08:44:21 2012	(r239810)
+++ stable/8/sys/dev/acpica/acpi_cpu.c	Wed Aug 29 08:46:04 2012	(r239811)
@@ -736,13 +736,13 @@ acpi_cpu_cx_cst(struct acpi_cpu_softc *s
 		/* This is the first C1 state.  Use the reserved slot. */
 		sc->cpu_cx_states[0] = *cx_ptr;
 	    } else {
-		sc->cpu_non_c3 = i;
+		sc->cpu_non_c3 = sc->cpu_cx_count;
 		cx_ptr++;
 		sc->cpu_cx_count++;
 	    }
 	    continue;
 	case ACPI_STATE_C2:
-	    sc->cpu_non_c3 = i;
+	    sc->cpu_non_c3 = sc->cpu_cx_count;
 	    break;
 	case ACPI_STATE_C3:
 	default:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208290846.q7T8k4JL014340>