From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shinya Kuribayashi Date: Tue, 29 Nov 2011 01:24:21 +0900 Subject: [U-Boot] [PATCH 05/11] MIPS: add sleep handler for slave CPUs in multi-processor systems In-Reply-To: <1322143076-20349-6-git-send-email-daniel.schwierzeck@googlemail.com> References: <1322143076-20349-1-git-send-email-daniel.schwierzeck@googlemail.com> <1322143076-20349-6-git-send-email-daniel.schwierzeck@googlemail.com> Message-ID: <4ED3B5B5.5010205@pobox.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 11/24/11 10:57 PM, Daniel Schwierzeck wrote: > diff --git a/arch/mips/cpu/mips32/start.S b/arch/mips/cpu/mips32/start.S > index 9c1b2f7..b6cb4be 100644 > --- a/arch/mips/cpu/mips32/start.S > +++ b/arch/mips/cpu/mips32/start.S > @@ -224,6 +224,14 @@ reset: > > setup_c0_status_reset > > + /* Set all slave CPUs in sleep mode */ > +#ifdef CONFIG_SYS_MPS_SLAVE_CPU_SLEEP > + mfc0 k0, CP0_EBASE > + and k0, EBASEF_CPUNUM > + bne k0, zero, slave_cpu_sleep > + nop > +#endif > + > /* Init Timer */ > mtc0 zero, CP0_COUNT > mtc0 zero, CP0_COMPARE Just wondered, why is this conditionally selected? To save text size, or other reason? The change looks Ok with s/MPS/MIPS/ typo fixed as pointed by Andrew.