From patchwork Thu May 23 07:28:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 2605031 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id 3BBA4DFB78 for ; Thu, 23 May 2013 07:29:24 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UfPxg-0000Yn-V4; Thu, 23 May 2013 07:29:21 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UfPxe-0003Ct-7C; Thu, 23 May 2013 07:29:18 +0000 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UfPxb-0003CG-2C for linux-arm-kernel@lists.infradead.org; Thu, 23 May 2013 07:29:15 +0000 Received: by mail-wg0-f41.google.com with SMTP id c11so3227296wgh.2 for ; Thu, 23 May 2013 00:28:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=yHM8CUCA5GWBbfBCnW2ibBuqwOGgp9ve0OSOGxIwEgU=; b=KohSaiqafzpy9rPUk5k1ZiyQTXfoAgx2ve03yfd+hzgyUeGaeVlPE1Gkv+SzVV+nmG i21l88rpyemqK9nwEED+EgVycxyrUqQSfMH6Jh5OyICBU2i7f0nCYGhy5BTZjE4nGN3D qkuLQNE8YBi7Slk0qH9M+556/LRSXOtIV5tDLYjpxnHX5hv5rdK3HALS2fx+qehV0Ro+ Z5EopIQhkqah8JCBxYtcs4CJwQ51d5FJxEqOZLMKRrj1wvdwg0z47xLMNacJH1Tiicpy LYWqQT07gHSmqBe3PgLnos3q2BjOsTU7061sXelrdkXobUGuHwi8fD/QYPvK9KXrlsOw eM4A== X-Received: by 10.181.13.229 with SMTP id fb5mr21970251wid.16.1369294130241; Thu, 23 May 2013 00:28:50 -0700 (PDT) Received: from ards-mac-mini.local (cag06-7-83-153-85-71.fbx.proxad.net. [83.153.85.71]) by mx.google.com with ESMTPSA id q13sm15606441wie.8.2013.05.23.00.28.49 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 May 2013 00:28:49 -0700 (PDT) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] ARM: move VFP init to an earlier boot stage Date: Thu, 23 May 2013 09:28:24 +0200 Message-Id: <1369294104-3849-2-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1369294104-3849-1-git-send-email-ard.biesheuvel@linaro.org> References: <1369294104-3849-1-git-send-email-ard.biesheuvel@linaro.org> X-Gm-Message-State: ALoCoQlckgaorFKYdOQxPNjBq9GKZecDXxs8SWmoVCidEHXJHkADB6lw2M+mJueRcpdcYpH5MZwq X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130523_032915_241360_04C58B74 X-CRM114-Status: GOOD ( 10.99 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Ard Biesheuvel , nico@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org In order to use the NEON/VFP unit in the kernel, we should initialize it a bit earlier in the boot process so NEON users that like to do a quick benchmark at load time (like the xor_blocks or RAID-6 code) find the NEON/VFP unit already enabled. Replaced late_initcall() with core_initcall(). Signed-off-by: Ard Biesheuvel --- arch/arm/vfp/vfpmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c index ab1eeae..e5413c3 100644 --- a/arch/arm/vfp/vfpmodule.c +++ b/arch/arm/vfp/vfpmodule.c @@ -770,4 +770,4 @@ static int __init vfp_init(void) return 0; } -late_initcall(vfp_init); +core_initcall(vfp_init);