From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965287AbeAKS2k (ORCPT + 1 other); Thu, 11 Jan 2018 13:28:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:51086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933141AbeAKS2j (ORCPT ); Thu, 11 Jan 2018 13:28:39 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 12C5421746 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=frederic@kernel.org Date: Thu, 11 Jan 2018 19:28:35 +0100 From: Frederic Weisbecker To: Anna-Maria Gleixner Cc: LKML , Thomas Gleixner , Peter Zijlstra , Ingo Molnar , keescook@chromium.org, Christoph Hellwig , John Stultz Subject: Re: [PATCH v4 02/36] hrtimer: Correct blantanly wrong comment Message-ID: <20180111182835.GB20377@lerouge> References: <20171221104205.7269-1-anna-maria@linutronix.de> <20171221104205.7269-3-anna-maria@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171221104205.7269-3-anna-maria@linutronix.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, Dec 21, 2017 at 11:41:31AM +0100, Anna-Maria Gleixner wrote: > From: Thomas Gleixner > > The protection of a hrtimer which runs its callback against migration to a > different CPU has nothing to do with hard interrupt context. > > The protection against migration of a hrtimer running the expiry callback > is the pointer in the cpu_base which holds a pointer to the currently > running timer. This pointer is evaluated in the code which potentially > switches the timer base and makes sure it's kept on the CPU on which the > callback is running. > > Reported-by: Anna-Maria Gleixner > Signed-off-by: Thomas Gleixner > Signed-off-by: Anna-Maria Gleixner Reviewed-by: Frederic Weisbecker