From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Andre Heider To: Geoff Levand Subject: [PATCH 08/15] ps3: Only prealloc the flash bounce buffer for the OtherOS lpar Date: Mon, 1 Aug 2011 22:02:59 +0200 Message-Id: <1312228986-32307-9-git-send-email-a.heider@gmail.com> In-Reply-To: <1312228986-32307-1-git-send-email-a.heider@gmail.com> References: <1312228986-32307-1-git-send-email-a.heider@gmail.com> Cc: cbe-oss-dev@lists.ozlabs.org, Hector Martin , linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , It's only used by the ps3flash driver, which only supports the OtherOS lpar. Signed-off-by: Andre Heider --- arch/powerpc/platforms/ps3/setup.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/powerpc/platforms/ps3/setup.c index f430279..923be8a 100644 --- a/arch/powerpc/platforms/ps3/setup.c +++ b/arch/powerpc/platforms/ps3/setup.c @@ -233,7 +233,10 @@ static void __init ps3_setup_arch(void) #endif prealloc_ps3fb_videomemory(); - prealloc_ps3flash_bounce_buffer(); + + /* the ps3flash driver only works for OtherOS */ + if (ps3_get_ss_laid() == PS3_SS_LAID_OTHEROS) + prealloc_ps3flash_bounce_buffer(); ppc_md.power_save = ps3_power_save; ps3_os_area_init(); -- 1.7.5.4