From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932333AbdJZNmE (ORCPT ); Thu, 26 Oct 2017 09:42:04 -0400 Received: from merlin.infradead.org ([205.233.59.134]:38508 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932246AbdJZNmD (ORCPT ); Thu, 26 Oct 2017 09:42:03 -0400 Date: Thu, 26 Oct 2017 15:41:36 +0200 From: Peter Zijlstra To: cj.chengjian@huawei.com, tglx@linutronix.de, hpa@zytor.com, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, mingo@kernel.org Cc: linux-tip-commits@vger.kernel.org Subject: Re: [tip:sched/core] sched/idle: Micro-optimize the idle loop Message-ID: <20171026134136.GR3165@worktop.lehotels.local> References: <1508930907-107755-1-git-send-email-cj.chengjian@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 26, 2017 at 02:31:34AM -0700, tip-bot for Cheng Jian wrote: > After patch (execution in loop): > 872: 0f ae e8 lfence > ARM64: > After patch (execution in loop): > c84: d5033d9f dsb ld > @@ -225,7 +226,7 @@ static void do_idle(void) > check_pgt_cache(); > rmb(); I never could find a reason for that rmb() to exist, it also lacks a clarifying comment. We should perhaps attempt removing that...