From mboxrd@z Thu Jan 1 00:00:00 1970 From: stanley.miao@windriver.com (stanley.miao) Date: Fri, 14 Jan 2011 18:08:01 +0800 Subject: [PATCH V3 07/63] ST SPEAr13XX: Adding machine specific src files In-Reply-To: References: Message-ID: <4D302081.3040708@windriver.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Viresh Kumar wrote: > > + > +void __cpuinit platform_secondary_init(unsigned int cpu) > +{ > > + > + /* > + * let the primary processor know we're out of the > + * pen, then head off into the C entry point > + */ > + pen_release = -1; > + smp_wmb(); > Russell has fixed this line. See commit 3705ff6da538aff6dba535e2e9cbcbb9456d0d53 in the latest kernel. > + > + /* > + * Synchronise with the boot thread. > + */ > + spin_lock(&boot_lock); > + spin_unlock(&boot_lock); > +} > + > > +void __init smp_prepare_cpus(unsigned int max_cpus) > +{ > + unsigned int ncores = get_core_count(); > + unsigned int cpu = smp_processor_id(); > + int i; > + > + /* sanity check */ > + if (ncores == 0) { > + pr_err("Realview: strange CM count of 0? Default to 1\n"); > RealView ? Stanley.