From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [Cbe-oss-dev] [PATCH] cell: use ppc_md->power_save instead of cbe_idle_loop From: Benjamin Herrenschmidt To: Arnd Bergmann In-Reply-To: <200610231152.07675.arnd.bergmann@de.ibm.com> References: <200610201840.14389.arnd.bergmann@de.ibm.com> <20061020182203.7871d1b1@pb15> <200610231152.07675.arnd.bergmann@de.ibm.com> Content-Type: text/plain Date: Mon, 23 Oct 2006 20:16:27 +1000 Message-Id: <1161598587.10524.455.camel@localhost.localdomain> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, paulus@samba.org, cbe-oss-dev@ozlabs.org, Anthony J Marsala List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > + /* > + * We need to call cbe_enable_pause_zero on each CPU > + * before first entering power_save(). The most convenient > + * place for this is ppc_md->idle, because that is called > + * right before entering the idle loop. > + */ > + ppc_md.idle_loop = cbe_enable_pause_zero; I disagree here... this should be done in setup_cpu() for non-boot CPUs, and sometime in setup_arch for the boot CPU. Another option is to have the pm_control bit done once for all CPUs at boot in setup_arch() or such, and the TSC_CELL SPR bit done unconditionally in powersave... Ben.