Date: Sun, 19 Apr 2015 20:20:52 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281752 - head/sys/arm/allwinner/a20 Message-ID: <201504192020.t3JKKqie022559@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marius Date: Sun Apr 19 20:20:52 2015 New Revision: 281752 URL: https://svnweb.freebsd.org/changeset/base/281752 Log: Make a comment reflect reality. Modified: head/sys/arm/allwinner/a20/a20_mp.c Modified: head/sys/arm/allwinner/a20/a20_mp.c ============================================================================== --- head/sys/arm/allwinner/a20/a20_mp.c Sun Apr 19 20:15:57 2015 (r281751) +++ head/sys/arm/allwinner/a20/a20_mp.c Sun Apr 19 20:20:52 2015 (r281752) @@ -25,6 +25,7 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); + #include <sys/param.h> #include <sys/systm.h> #include <sys/bus.h> @@ -71,7 +72,7 @@ platform_mp_setmaxid(void) if (mp_ncpus != 0) return; - /* Read current CP15 Cache Size ID Register */ + /* Read the number of cores from the CP15 L2 Control Register. */ __asm __volatile("mrc p15, 1, %0, c9, c0, 2" : "=r" (ncpu)); ncpu = ((ncpu >> 24) & 0x3) + 1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504192020.t3JKKqie022559>