Message ID | 1519633227-29832-22-git-send-email-alex.shi@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 102A260208 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 26 Feb 2018 08:46:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0579E29D27 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 26 Feb 2018 08:46:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EDE8329D2C; Mon, 26 Feb 2018 08:46:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 545BD29D27 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 26 Feb 2018 08:46:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gt+Nup/KJL59Im3aKR+G0m2WrHbqe/mFkFsgbdAE+QI=; b=Oi8ItDFLw+wHOu Zqwofnkcj75pJ7kgY8KYOAWQDMQhnWmYPpNjpHx5Xth0o8/U8grD+Rz6uzt9yxSGWT39/YT9iEoZ1 7GkuQQEeA3OABWiXVjIemhntxup0vCryBr68fHuEQdSpslj1zGa8DxCHT17cgr1NTvrvCnUNYiIwk 5B09EAjx8xk5xNyjSsJraIE4cF7l3mZlsZ4c7Sw9x4AFIOEG1ujcRqn1rkQJsRy/7Ith59GykSfNi kjUS5L9icV1huA0uZOaNgOnTU6uRWeYLsCwAjNrXkMmqjH+sNzs21aFnDMxL7OygB0+la+k5hU0/7 TvrdPuF04h2jI4UXA0Og==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eqEQm-0004Mp-K9; Mon, 26 Feb 2018 08:46:44 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eqEK6-0006Bc-MH for linux-arm-kernel@bombadil.infradead.org; Mon, 26 Feb 2018 08:39:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:To:From:Sender:Reply-To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+xR+r110x92nrh5KbxC/qh/uHxgkGEZ0it5ORoIx2gk=; b=kSdtNu2oQyQcGG0dkTcUuZFL/ +Mz6wZUIwx3wsTpU5F2h44VdNT1/chuEydvWrv49mzdCeXt0SWtmPq8AyeNDJnmuTAefWF/Vbfn82 WDge6yAumSNVrMUQ9sg/VPHl3inAElh46tJrDzEH3cz2qglD3HI+r7TCrQOGswMxMIbRIrlgeSiXY 4+lsjCi4BtT8RR1AyqUgU37KrYyJO1v8UpR5F9xNpUm0DKrC8HYbGgzYRK2ifBtYVw3+U2gHwdD0W sx4jWVO1NNYBy8168EHQ1KvhMj1ZBoudfkoFph8LnubGksRFhrBzaBp06SJpbcnsPql2ZIzwu54q4 W2MuMpZxA==; Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eqE4d-0006BG-Gi for linux-arm-kernel@lists.infradead.org; Mon, 26 Feb 2018 08:23:53 +0000 Received: by mail-pl0-x244.google.com with SMTP id d4so8863322pll.5 for <linux-arm-kernel@lists.infradead.org>; Mon, 26 Feb 2018 00:23:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=+xR+r110x92nrh5KbxC/qh/uHxgkGEZ0it5ORoIx2gk=; b=gUwGegbtxMM+J+Et1e7BilrCA4XcNO36qS4/uUgBZWPNdQefunecApbEEIR45RIPbv MFQa4xXTC2L2Oc2fnOXsByXb0GdTG/v3osZd4DZ9i3UxSsSGa8NKYx9Z/Plxd5wuV8xz Doc7OTJwb5fF+Tkz0OGAbtOli2VYcAuRfrut8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=+xR+r110x92nrh5KbxC/qh/uHxgkGEZ0it5ORoIx2gk=; b=RJa/rdHkpM6geAZ4OCgkzywQsJ+nlXc4tbya0gvWxvw4PiwX8xfyFaIBKx3992YZpI Nku2RPID0ZsE4jH9/NrOJQrayj55TaKGSSxSSGZO+AE7HDtlGkKia4WosQcv641qnuLy M38ZbqVj4PlcAO8xRQZcwWoWkdoIYi5xCjC8q+gAQD4XA41NODSvf5kN+d1rwlM3rHnc 6CHio1SPsHz1nzh4qxn/fs9Z/EMxAdB2X8z52kKwx8bOIyImFXxyxnnAs3iTPWS5JDc+ swDtIH5Rv0EgvHdvz13NRBjO2mCToVxtr95EXaKywInOcf3YsyfPK4+wzvsFzrxMoDiM 4Ylw== X-Gm-Message-State: APf1xPAJLo0BKkXIhsJJmIP54MHrVPH/yRnXOZ79kqqQKxhxkjDrfcmq ieWHRQ89IwJ8BVYWrghs+HvC1g== X-Google-Smtp-Source: AH8x2244lxR4SWTphcHaCrcokI9VJbLJDFCasThtbj6HojPPjsHfMrW0W4KpHT3cziFeEdWtQuu6wA== X-Received: by 2002:a17:902:8341:: with SMTP id z1-v6mr10050718pln.386.1519633419920; Mon, 26 Feb 2018 00:23:39 -0800 (PST) Received: from localhost.localdomain (176.122.172.82.16clouds.com. [176.122.172.82]) by smtp.gmail.com with ESMTPSA id o86sm1422706pfi.87.2018.02.26.00.23.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Feb 2018 00:23:39 -0800 (PST) From: Alex Shi <alex.shi@linaro.org> To: Marc Zyngier <marc.zyngier@arm.com>, Will Deacon <will.deacon@arm.com>, Ard Biesheuvel <ard.biesheuvel@linaro.org>, Catalin Marinas <catalin.marinas@arm.com>, stable@vger.kernel.org, linux-arm-kernel@lists.infradead.org (moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 21/52] arm64: cpufeature: Pass capability structure to ->enable callback Date: Mon, 26 Feb 2018 16:19:55 +0800 Message-Id: <1519633227-29832-22-git-send-email-alex.shi@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519633227-29832-1-git-send-email-alex.shi@linaro.org> References: <1519633227-29832-1-git-send-email-alex.shi@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180226_082351_547144_1F2F17B0 X-CRM114-Status: GOOD ( 14.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index fcb67e0..5c41ef6 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -949,7 +949,7 @@ void __init enable_cpu_capabilities(const struct arm64_cpu_capabilities *caps) * uses an IPI, giving us a PSTATE that disappears when * we return. */ - stop_machine(caps->enable, NULL, cpu_online_mask); + stop_machine(caps->enable, (void *)caps, cpu_online_mask); } /* @@ -1005,7 +1005,7 @@ verify_local_cpu_features(const struct arm64_cpu_capabilities *caps) cpu_die_early(); } if (caps->enable) - caps->enable(NULL); + caps->enable((void *)caps); } }