From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yk0-x22a.google.com (mail-yk0-x22a.google.com [IPv6:2607:f8b0:4002:c07::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 991641A1D75 for ; Mon, 24 Aug 2015 21:20:53 +1000 (AEST) Received: by ykll84 with SMTP id l84so130758237ykl.0 for ; Mon, 24 Aug 2015 04:20:51 -0700 (PDT) From: Kevin Hao To: Michael Ellerman Cc: Benjamin Herrenschmidt , Peter Zijlstra , Ingo Molnar , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/6] powerpc: invoke jump_label_init() in a much earlier stage Date: Mon, 24 Aug 2015 19:20:24 +0800 Message-Id: <1440415228-8006-3-git-send-email-haokexin@gmail.com> In-Reply-To: <1440415228-8006-1-git-send-email-haokexin@gmail.com> References: <1440415228-8006-1-git-send-email-haokexin@gmail.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , So we can use static_key for cpu_has_feature() and mmu_has_feature(). Signed-off-by: Kevin Hao --- v2: No change. arch/powerpc/kernel/setup_32.c | 2 ++ arch/powerpc/kernel/setup_64.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index bb02e9f6944e..35980a2785ba 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c @@ -113,6 +113,8 @@ notrace void __init machine_init(u64 dt_ptr) { lockdep_init(); + jump_label_init(); + /* Enable early debugging if any specified (see udbg.h) */ udbg_early_init(); diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index bdcbb716f4d6..f0802a0b4a20 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c @@ -250,6 +250,8 @@ void __init early_setup(unsigned long dt_ptr) /* Initialize lockdep early or else spinlocks will blow */ lockdep_init(); + jump_label_init(); + /* -------- printk is now safe to use ------- */ /* Enable early debugging if any specified (see udbg.h) */ -- 2.1.0