From patchwork Wed Dec 9 22:43:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 58188 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp142287lbb; Wed, 9 Dec 2015 15:03:55 -0800 (PST) X-Received: by 10.67.5.40 with SMTP id cj8mr11770595pad.98.1449702235344; Wed, 09 Dec 2015 15:03:55 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wz5si15572518pab.68.2015.12.09.15.03.54; Wed, 09 Dec 2015 15:03:55 -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; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754368AbbLIXDx (ORCPT + 28 others); Wed, 9 Dec 2015 18:03:53 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:36711 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754331AbbLIXDv (ORCPT ); Wed, 9 Dec 2015 18:03:51 -0500 Received: by pacdm15 with SMTP id dm15so36892567pac.3 for ; Wed, 09 Dec 2015 15:03:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=WkFRWJ71/JSVTfo9iR2KxUCsPDX7u7yf+HNC8sGTLC8=; b=n/nLWchvY/F0lftO9Ww61FtRLOhGpD8EJaWf2ZTcGPcKIcQs0dERarRR3QNwOUH7Mw mjMEe4dM8bB6j5tsVS8I93Dcc0K5S/MxUYPpowONgS/q9E/juy28UMCvO65IXFDLxPJX hDwXePJ+8DlybN8c45NlNJQOxlRmV4v3GCMilZNfqt4FD2KNWsgMBGF9H/HUyOGnFP2n HkO7eegSfI8OCW4VQfYiGlmC/ndtb3yAesF21w4dDDJHO4hReTYP/cgNmBwyjHSt1M+P BEQ0DkHgciuYlo0eeOL/VXrYHVwS4F2iYJX6YbxFpD6q8bXh6yS0Ll3P9dqkcVWxxjBY xQAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WkFRWJ71/JSVTfo9iR2KxUCsPDX7u7yf+HNC8sGTLC8=; b=StVoh7k4YrOXrWt1ta80vaHBIKxIEpP7Yl/6Ki3O1oxa0qrytRW29lRg23vYC2KGt9 M4mNuuVBVAfMLNZ24oLO68HxnddGd47ObhShBy4fM8AxQDos8ffr9ObMnOiLQwPbgURA S7otf1T/56ysf8OmLttj0MIpD851kUHNxHeQVQqk6xxzmQyqeHXT/MaMDwK8/4aE3tYD D3Z9kM9hvF8Q47yYO7UX0ubaZ7S95R9u7gWffgULDbbziKdqMtSTFc02OwpspC9hgtnD eunTxXyHRwOPMi7KfcHfgPGmG32+rAXQQ77VoSSD2jDg9oUHWMEcRH3pqLyw2JkQkC8p VU4g== X-Gm-Message-State: ALoCoQmlXkQ+HJy8WMerr52WJM5wwt1e/z9LTBgAzel3qP2d/MxO+uXtPrzA5FT/1r43lD2eXPMOOZSVg1jCSVO0xlWgnWNqaw== X-Received: by 10.66.216.7 with SMTP id om7mr11821222pac.90.1449702231040; Wed, 09 Dec 2015 15:03:51 -0800 (PST) Received: from yshi-Precision-T5600.corp.ad.wrs.com (unknown-216-82.windriver.com. [147.11.216.82]) by smtp.gmail.com with ESMTPSA id 24sm13901811pfm.75.2015.12.09.15.03.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 15:03:50 -0800 (PST) From: Yang Shi To: benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linaro-kernel@lists.linaro.org, yang.shi@linaro.org Subject: [PATCH] ppc64: select HAVE_CONTEXT_TRACKING by default Date: Wed, 9 Dec 2015 14:43:54 -0800 Message-Id: <1449701034-5444-1-git-send-email-yang.shi@linaro.org> X-Mailer: git-send-email 2.0.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The functionality of context tracking has been implemented by PPC64 and HAVE_CONTEXT_TRACKING was selected by pseries by default. Actually, it is applicale to all PPC64 platforms, so select it in PPC64 generic Kconfig. NO_HZ_FULL depends on it, with this change NO_HZ_FULL could be enabled for all PPC64 machines. Signed-off-by: Yang Shi --- Following the instruction in Documentation/timers/NO_HZ.txt, I tested full nohz on my FSL T2080 target, the below trace log shows it works well. user_loop-574 [001] d..1 137.044892: tick_stop: success=yes msg= user_loop-574 [001] d.h1 138.044880: hrtimer_expire_entry: hrtimer=c00000007fd22d10 function=.tick_sched_timer now=137796002092 user_loop-574 [001] d.h1 139.044880: hrtimer_expire_entry: hrtimer=c00000007fd22d10 function=.tick_sched_timer now=138796002129 user_loop-574 [001] d.h1 140.044880: hrtimer_expire_entry: hrtimer=c00000007fd22d10 function=.tick_sched_timer now=139796002219 user_loop-574 [001] d.h1 141.044880: hrtimer_expire_entry: hrtimer=c00000007fd22d10 function=.tick_sched_timer now=140796002229 user_loop-574 [001] d.h1 142.044879: hrtimer_expire_entry: hrtimer=c00000007fd22d10 function=.tick_sched_timer now=141796002159 user_loop-574 [001] d.h1 143.044879: hrtimer_expire_entry: hrtimer=c00000007fd22d10 function=.tick_sched_timer now=142796002142 user_loop-574 [001] d.h1 144.044878: hrtimer_expire_entry: hrtimer=c00000007fd22d10 function=.tick_sched_timer now=143796002046 user_loop-574 [001] d.h1 145.044878: hrtimer_expire_entry: hrtimer=c00000007fd22d10 function=.tick_sched_timer now=144796002189 user_loop-574 [001] d.h1 146.044878: hrtimer_expire_entry: hrtimer=c00000007fd22d10 function=.tick_sched_timer now=145796002199 user_loop-574 [001] d.h1 147.044880: hrtimer_expire_entry: hrtimer=c00000007fd22d10 function=.tick_sched_timer now=146796003836 It shows the timer tick just comes in every second. It should be low risk to have problem on other PPC64 targets, although they are not tested. arch/powerpc/platforms/Kconfig.cputype | 1 + arch/powerpc/platforms/pseries/Kconfig | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) -- 2.0.2 -- 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/ diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index 142dff5..7b25dd1 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++ b/arch/powerpc/platforms/Kconfig.cputype @@ -3,6 +3,7 @@ config PPC64 default n select HAVE_VIRT_CPU_ACCOUNTING select ZLIB_DEFLATE + select HAVE_CONTEXT_TRACKING help This option selects whether a 32-bit or a 64-bit kernel will be built. diff --git a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig index bec90fb..6853148 100644 --- a/arch/powerpc/platforms/pseries/Kconfig +++ b/arch/powerpc/platforms/pseries/Kconfig @@ -17,7 +17,6 @@ config PPC_PSERIES select PPC_UDBG_16550 select PPC_NATIVE select PPC_DOORBELL - select HAVE_CONTEXT_TRACKING select HOTPLUG_CPU if SMP select ARCH_RANDOM select PPC_DOORBELL