Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753039Ab3FEMmR (ORCPT ); Wed, 5 Jun 2013 08:42:17 -0400 Received: from mail-oa0-f44.google.com ([209.85.219.44]:64606 "EHLO mail-oa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752996Ab3FEMmQ (ORCPT ); Wed, 5 Jun 2013 08:42:16 -0400 MIME-Version: 1.0 In-Reply-To: <20130605110434.GY8923@twins.programming.kicks-ass.net> References: <51AEC1C3.1040804@linux.vnet.ibm.com> <20130605110434.GY8923@twins.programming.kicks-ass.net> Date: Wed, 5 Jun 2013 18:12:15 +0530 Message-ID: Subject: Re: [PATCH 1/2] sched: Optimize build_sched_domains() for saving first SD node for a cpu From: Viresh Kumar To: Peter Zijlstra Cc: Michael Wang , mingo@redhat.com, linaro-kernel@lists.linaro.org, patches@linaro.org, linux-kernel@vger.kernel.org, robin.randhawa@arm.com, Steve.Bannister@arm.com, Liviu.Dudau@arm.com, charles.garcia-tobin@arm.com, arvind.chauhan@arm.com Content-Type: multipart/mixed; boundary=e89a8ff2560e0caffe04de6787c2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6169 Lines: 105 --e89a8ff2560e0caffe04de6787c2 Content-Type: text/plain; charset=ISO-8859-1 On 5 June 2013 16:34, Peter Zijlstra wrote: > On Wed, Jun 05, 2013 at 10:37:29AM +0530, Viresh Kumar wrote: >> See if below one looks better (Attached too in case gmail screws up >> my mail).. > Applying patch > patches/viresh_kumar-_patch__sched-optimize_build_sched_domains_for_saving_first_sd.patch > patching file kernel/sched/core.c > patch: **** malformed patch at line 56: cpumask *cpu_map, You tried to apply patch from mail or attachment? I requested to pick attachment as gmail's copy-paste screws up patches. I rebased it over tip/master now: 2bf6874 Merge branch 'x86/cleanups' Patches are attached now. --e89a8ff2560e0caffe04de6787c2 Content-Type: application/octet-stream; name="0001-sched-Remove-unused-params-of-build_sched_domain.patch" Content-Disposition: attachment; filename="0001-sched-Remove-unused-params-of-build_sched_domain.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hhkiacri0 RnJvbSA1NDVlMGI0NTM2MTY2YTE1YjQ0NzVhYmNhZmU1ZWQwZGI0YWQ0YTJjIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpNZXNzYWdlLUlkOiA8NTQ1ZTBiNDUzNjE2NmExNWI0NDc1YWJjYWZlNWVk MGRiNGFkNGEyYy4xMzcwNDM2MTIwLmdpdC52aXJlc2gua3VtYXJAbGluYXJvLm9yZz4KRnJvbTog VmlyZXNoIEt1bWFyIDx2aXJlc2gua3VtYXJAbGluYXJvLm9yZz4KRGF0ZTogVHVlLCA0IEp1biAy MDEzIDE2OjEyOjQzICswNTMwClN1YmplY3Q6IFtQQVRDSCAxLzJdIHNjaGVkOiBSZW1vdmUgdW51 c2VkIHBhcmFtcyBvZiBidWlsZF9zY2hlZF9kb21haW4oKQoKYnVpbGRfc2NoZWRfZG9tYWluKCkg bmV2ZXIgdXNlcyBwYXJhbWV0ZXIgc3RydWN0IHNfZGF0YSAqZCBhbmQgc28gcGFzc2luZyBpdCBp cwp1c2VsZXNzLgoKUmVtb3ZlIGl0LgoKU2lnbmVkLW9mZi1ieTogVmlyZXNoIEt1bWFyIDx2aXJl c2gua3VtYXJAbGluYXJvLm9yZz4KLS0tCiBrZXJuZWwvc2NoZWQvY29yZS5jIHwgNyArKystLS0t CiAxIGZpbGUgY2hhbmdlZCwgMyBpbnNlcnRpb25zKCspLCA0IGRlbGV0aW9ucygtKQoKZGlmZiAt LWdpdCBhL2tlcm5lbC9zY2hlZC9jb3JlLmMgYi9rZXJuZWwvc2NoZWQvY29yZS5jCmluZGV4IDUy YTE3NjAuLjA2MjM3MDMgMTAwNjQ0Ci0tLSBhL2tlcm5lbC9zY2hlZC9jb3JlLmMKKysrIGIva2Vy bmVsL3NjaGVkL2NvcmUuYwpAQCAtNTkzMCw5ICs1OTMwL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YgU0RUTF9PVkVSTEFQIHx8IHNjaGVkX2Zl YXQoRk9SQ0VfU0RfT1ZFUkxBUCkpCi0tIAoxLjcuMTIucmMyLjE4Lmc2MWI0NzJlCgo= --e89a8ff2560e0caffe04de6787c2 Content-Type: application/octet-stream; name="0002-sched-Optimize-build_sched_domains-for-saving-first-.patch" Content-Disposition: attachment; filename="0002-sched-Optimize-build_sched_domains-for-saving-first-.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hhkiacrm1 RnJvbSBmYzQ3MzUyN2NiYzRkZmEwYjhlZWVmMmE1OWRiNzQ2ODRlYjU5YTgzIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpNZXNzYWdlLUlkOiA8ZmM0NzM1MjdjYmM0ZGZhMGI4ZWVlZjJhNTlkYjc0 Njg0ZWI1OWE4My4xMzcwNDM2MTIwLmdpdC52aXJlc2gua3VtYXJAbGluYXJvLm9yZz4KSW4tUmVw bHktVG86IDw1NDVlMGI0NTM2MTY2YTE1YjQ0NzVhYmNhZmU1ZWQwZGI0YWQ0YTJjLjEzNzA0MzYx MjAuZ2l0LnZpcmVzaC5rdW1hckBsaW5hcm8ub3JnPgpSZWZlcmVuY2VzOiA8NTQ1ZTBiNDUzNjE2 NmExNWI0NDc1YWJjYWZlNWVkMGRiNGFkNGEyYy4xMzcwNDM2MTIwLmdpdC52aXJlc2gua3VtYXJA bGluYXJvLm9yZz4KRnJvbTogVmlyZXNoIEt1bWFyIDx2aXJlc2gua3VtYXJAbGluYXJvLm9yZz4K RGF0ZTogVHVlLCA0IEp1biAyMDEzIDE1OjQxOjE1ICswNTMwClN1YmplY3Q6IFtQQVRDSCAyLzJd IHNjaGVkOiBPcHRpbWl6ZSBidWlsZF9zY2hlZF9kb21haW5zKCkgZm9yIHNhdmluZyBmaXJzdAog U0Qgbm9kZSBmb3IgYSBjcHUKCldlIGFyZSBzYXZpbmcgZmlyc3Qgc2NoZWR1bGluZyBkb21haW4g Zm9yIGEgY3B1IGluIGJ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lpZiAodGwgPT0gc2NoZWRfZG9tYWluX3RvcG9sb2d5KQorCQkJCSpw ZXJfY3B1X3B0cihkLnNkLCBpKSA9IHNkOwogCQkJaWYgKHRsLT5mbGFncyAmIFNEVExfT1ZFUkxB UCB8fCBzY2hlZF9mZWF0KEZPUkNFX1NEX09WRVJMQVApKQogCQkJCXNkLT5mbGFncyB8PSBTRF9P VkVSTEFQOwogCQkJaWYgKGNwdW1hc2tfZXF1YWwoY3B1X21hcCwgc2NoZWRfZG9tYWluX3NwYW4o c2QpKSkKIAkJCQlicmVhazsKIAkJfQotCi0JCXdoaWxlIChzZC0+Y2hpbGQpCi0JCQlzZCA9IHNk LT5jaGlsZDsKLQotCQkqcGVyX2NwdV9wdHIoZC5zZCwgaSkgPSBzZDsKIAl9CiAKIAkvKiBCdWls ZCB0aGUgZ3JvdXBzIGZvciB0aGUgZG9tYWlucyAqLwotLSAKMS43LjEyLnJjMi4xOC5nNjFiNDcy ZQoK --e89a8ff2560e0caffe04de6787c2-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/