Received: by 10.223.164.202 with SMTP id h10csp1310883wrb; Wed, 8 Nov 2017 02:12:12 -0800 (PST) X-Google-Smtp-Source: ABhQp+Smu84Pu39Lt+w2mzTwjhYHn8X25/bgVJrX5KqI90et5F3qD4W+Fqcmy43fOxdsEdUd0O3I X-Received: by 10.99.111.197 with SMTP id k188mr1890812pgc.344.1510135932020; Wed, 08 Nov 2017 02:12:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510135931; cv=none; d=google.com; s=arc-20160816; b=K+L/LAZwdphG7i7lQNHOxiDDfjbh1p5XmnKmd0U3DONGduAaxOlKDS+f1trFgJT/Qf QFkxPMosUN3u6+d2kZDavdDl4ckj9NVOxKwOIbRQp4uUyEFrJc/sJ27O+uoQZ7uiJowz KwAOXAJXbxvTdNEOwz8jM7HtpQsEbrTGMLDQVc4SSBUcqdfaRd+LpNbmc99ETP89B9R6 GJfvR8AM2mrxfsjFuR1PijU8s8jG0ExkWBLeciZR+wGmIOcvx9ylzRO3bC3lIbSkdNmg buEjAmgf5tUzCc8bspW6+Krd++HdSRzjvYg1xj9ow+aXUMA2rlphmJLKHvkECZlYbgB+ CHTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=soY0/1Gbde5/UJoZm9lGWCVFTp8exGZuiE3Uuypwqdw=; b=Vd7C6vZYbK/RwMGp7LJf8UcZOdkKNN1ueSMtt99xEG2b2OyeiTY9q/OuOFdLdQLrxm H23D2NPd/SuLPQXCzqB9bAjg2bMMefl5fVj8wda0f/sA1u5D5C7SJmsp0RrhU1qWFPxA Z1otVoBuFvG8jJvDGdorkX3S14iYAgLttcMZYr8PjRNLtBW0uWODxKsJecGsE+tR7qJ8 5EEKIjFcU9uBsdiwHoDnnP+Qi4afgZwOyg9SZVlpudm66Kek/7bM//RHFJ7brCah8v4U jLYr8YyqsudXu8+Ah+gxiDGEM7ZAxpkvCB7tn9MJURjGQ0HwDMNJ3U5df6e0iz9+C/An SfpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20si3584556plr.659.2017.11.08.02.11.59; Wed, 08 Nov 2017 02:12:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752003AbdKHKKG (ORCPT + 91 others); Wed, 8 Nov 2017 05:10:06 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:56491 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750832AbdKHKKD (ORCPT ); Wed, 8 Nov 2017 05:10:03 -0500 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="30011349" Received: from localhost (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 08 Nov 2017 18:10:02 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id D6A7B48089C4; Wed, 8 Nov 2017 18:09:55 +0800 (CST) Received: from localhost.localdomain.localdomain (10.167.226.106) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 8 Nov 2017 18:09:55 +0800 From: Dou Liyang To: , CC: , , , , Dou Liyang Subject: [PATCH v2] x86/tsc: Mark cyc2ns_init() and detect_art() __init Date: Wed, 8 Nov 2017 18:09:52 +0800 Message-ID: <1510135792-17429-1-git-send-email-douly.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.5.5 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: D6A7B48089C4.A29FD X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These two functions are only called by tsc_init(), which is an __init function during boot time, so mark them __init as well. Signed-off-by: Dou Liyang Reviewed-by: Ingo Molnar --- changelog V1 --> V2: Put two similar and slight patches together suggested by Ingo. --- arch/x86/kernel/tsc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index 796d96b..9b29f39 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c @@ -112,7 +112,7 @@ static void cyc2ns_data_init(struct cyc2ns_data *data) data->cyc2ns_offset = 0; } -static void cyc2ns_init(int cpu) +static void __init cyc2ns_init(int cpu) { struct cyc2ns *c2n = &per_cpu(cyc2ns, cpu); @@ -959,7 +959,7 @@ core_initcall(cpufreq_register_tsc_scaling); /* * If ART is present detect the numerator:denominator to convert to TSC */ -static void detect_art(void) +static void __init detect_art(void) { unsigned int unused[2]; -- 2.5.5 From 1583599341541409629@xxx Thu Nov 09 14:33:39 +0000 2017 X-GM-THRID: 1583546546011861222 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread