svn commit: r215902 - stable/8/sys/amd64/acpica

Jung-uk Kim jkim at FreeBSD.org
Fri Nov 26 21:33:27 UTC 2010


Author: jkim
Date: Fri Nov 26 21:33:26 2010
New Revision: 215902
URL: http://svn.freebsd.org/changeset/base/215902

Log:
  MFC:	r210942
  
  Remove unnecessary casting and simplify code.

Modified:
  stable/8/sys/amd64/acpica/acpi_wakeup.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/amd64/acpica/acpi_wakeup.c
==============================================================================
--- stable/8/sys/amd64/acpica/acpi_wakeup.c	Fri Nov 26 21:32:21 2010	(r215901)
+++ stable/8/sys/amd64/acpica/acpi_wakeup.c	Fri Nov 26 21:33:26 2010	(r215902)
@@ -176,7 +176,6 @@ static void
 acpi_wakeup_cpus(struct acpi_softc *sc, cpumask_t wakeup_cpus)
 {
 	uint32_t	mpbioswarmvec;
-	cpumask_t	map;
 	int		cpu;
 	u_char		mpbiosreason;
 
@@ -193,8 +192,7 @@ acpi_wakeup_cpus(struct acpi_softc *sc, 
 
 	/* Wake up each AP. */
 	for (cpu = 1; cpu < mp_ncpus; cpu++) {
-		map = 1ul << cpu;
-		if ((wakeup_cpus & map) != map)
+		if ((wakeup_cpus & (1 << cpu)) == 0)
 			continue;
 		if (acpi_wakeup_ap(sc, cpu) == 0) {
 			/* restore the warmstart vector */


More information about the svn-src-all mailing list