From patchwork Fri Dec 13 22:24:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 22408 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f70.google.com (mail-pb0-f70.google.com [209.85.160.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9136023FBA for ; Fri, 13 Dec 2013 22:27:18 +0000 (UTC) Received: by mail-pb0-f70.google.com with SMTP id rq2sf7442392pbb.5 for ; Fri, 13 Dec 2013 14:27:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=5BD7W/Q6/XIyRqU8gbQexYXSb97TNkXsTiVsuaEud2Q=; b=ZzZJVGprmw/fmMF08zDjjHefpwCXcc2PtzOWKPxy0pnvSgo0aswwTaBsdYj+ZwIVHa bnhJoAAzDcvv1MoCVxZxXJpqG4CPW3Bi+bzB3NlKEVpBjRm5Tr8+2dr4NUE9JowBwLQl YqHuzKInsbZFCj4Gt99n1mzGYg71g55X2rVTA3WxyS702hpAgKnQURO5noEpLCNebbjA IdbWHvweJs+X4zNRomdVxojCs8UySrCyraSXogsIiBjDqhP2k8NfplrtzXDSxZPupWIf g6QhqTGREcsrwScp2GjY352vreHBFkFx8W9JI6JfH/Jq3Wo51/xv7NFhNUOLhUkGFH4m qVCA== X-Gm-Message-State: ALoCoQkFGIMx6hRvGhAw0WLa9IbdvZ/aOD1QuiC/3VgpLQno6/UVsoGpVBad5AcyOjzyaUkYo850 X-Received: by 10.67.3.34 with SMTP id bt2mr2749773pad.41.1386973637901; Fri, 13 Dec 2013 14:27:17 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.24.174 with SMTP id v14ls1136856qef.74.gmail; Fri, 13 Dec 2013 14:27:17 -0800 (PST) X-Received: by 10.58.128.163 with SMTP id np3mr1561761veb.62.1386973637617; Fri, 13 Dec 2013 14:27:17 -0800 (PST) Received: from mail-vb0-f42.google.com (mail-vb0-f42.google.com [209.85.212.42]) by mx.google.com with ESMTPS id d6si1193894veo.96.2013.12.13.14.27.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:27:17 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.42 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.42; Received: by mail-vb0-f42.google.com with SMTP id w5so1752714vbf.1 for ; Fri, 13 Dec 2013 14:27:17 -0800 (PST) X-Received: by 10.221.49.8 with SMTP id uy8mr1103839vcb.65.1386973637554; Fri, 13 Dec 2013 14:27:17 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp73528vcz; Fri, 13 Dec 2013 14:27:17 -0800 (PST) X-Received: by 10.68.231.166 with SMTP id th6mr5977784pbc.27.1386973636722; Fri, 13 Dec 2013 14:27:16 -0800 (PST) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by mx.google.com with ESMTPS id zi8si2476037pac.330.2013.12.13.14.27.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:27:16 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.44 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) client-ip=209.85.220.44; Received: by mail-pa0-f44.google.com with SMTP id fa1so596754pad.3 for ; Fri, 13 Dec 2013 14:27:16 -0800 (PST) X-Received: by 10.66.121.164 with SMTP id ll4mr6204251pab.48.1386973636308; Fri, 13 Dec 2013 14:27:16 -0800 (PST) Received: from localhost.localdomain (c-67-170-153-23.hsd1.or.comcast.net. [67.170.153.23]) by mx.google.com with ESMTPSA id qz9sm7457908pbc.3.2013.12.13.14.27.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:27:15 -0800 (PST) From: John Stultz To: LKML Cc: Greg KH , Android Kernel Team , Sumit Semwal , Jesse Barker , Colin Cross , Rebecca Schultz Zavin , John Stultz Subject: [PATCH 043/115] gpu: ion: Clear GFP_WAIT flag on high order allocations Date: Fri, 13 Dec 2013 14:24:17 -0800 Message-Id: <1386973529-4884-44-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1386973529-4884-1-git-send-email-john.stultz@linaro.org> References: <1386973529-4884-1-git-send-email-john.stultz@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: john.stultz@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.42 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Rebecca Schultz Zavin This will prevent the kernel from kicking off compaction when higher order allocations are made. Instead we will get these high order allocations only if they are readily available. Signed-off-by: Rebecca Schultz Zavin [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz --- drivers/staging/android/ion/ion_system_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_system_heap.c b/drivers/staging/android/ion/ion_system_heap.c index 2204206..ad4933e 100644 --- a/drivers/staging/android/ion/ion_system_heap.c +++ b/drivers/staging/android/ion/ion_system_heap.c @@ -28,7 +28,7 @@ static unsigned int high_order_gfp_flags = (GFP_HIGHUSER | __GFP_ZERO | __GFP_NOWARN | __GFP_NORETRY | - __GFP_NO_KSWAPD); + __GFP_NO_KSWAPD) & ~__GFP_WAIT; static unsigned int low_order_gfp_flags = (GFP_HIGHUSER | __GFP_ZERO | __GFP_NOWARN); static const unsigned int orders[] = {8, 4, 0};