Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6019913yba; Thu, 11 Apr 2019 10:19:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqygZ2Z0DVBNUAI5vs15JnvP5hk0JYWK4Y6xIPZjL51W2u6o2i20RnSCbnbPb9V6uUX6kr/d X-Received: by 2002:a63:fc0b:: with SMTP id j11mr48280055pgi.74.1555003141677; Thu, 11 Apr 2019 10:19:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555003141; cv=none; d=google.com; s=arc-20160816; b=aVr+Q+Oa/29/b/F/vw7J0cWQjuw4J57dF2N+CT0VTHLJP8tLwNfOeOJjXcco5tXjmQ r8dBHKCrFOOt8l5pjnrcGqZoqjQZA1us0QD1jJzP46ySn8lwwI0B88+V3kpfiqHLTkuy nAX2EIzQiYBA19RvTLjf1XLutcyVMZEy6VwJjrhOX/KEGjQYWrU1fAS+eNS+qgJpQTHg so9G4Trvd4ALz96TpAM1ePWvK7npqSr1dxI8aqzp7+V7CykFiB5KBOTnYLZxYwqPydel Jkjt67um4MW/h+LyfzJpx2DngdTc63wNzhGSX8i+w8WN2StvEsGGDlEQ5I2oGjddjosl 2/7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=YU4pt8v1ib9daIqRADi7BjOhLgd2e+YgnUqd1UEAUao=; b=ddlmi82hBg+LaQtjsq9Uk3rWsPiWw8KvN61hj/Oa/EHyBwgDBrlbfDLPkd0GiDi0te FN/rjXeysg1AUdm0gXDTjOWiLnuYDtTSZCNSKehBEfXo+W2j8Vqln2tZB45t2jJZBYlu qsFiSSNg7mzLt37YfGchJP9HEU2B/XwBUULaOTr70dzrLdrimfre38Ikrm1DcV29Zmz7 Wfj9Mks3vYjcvg3kG1rCikbWZ3TLPrRFjcVEH3nzV5aTaQsnhmVOZ5LVlG+OLV6WkUom uoFA3wUpFJ1OjSZI2I1039RXb1BmL5biwKIGPEs7P5ou0V1awGpT5XtxyDdi0zia5GY1 ZfwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qi1JUTyJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s26si35533674pgm.223.2019.04.11.10.18.45; Thu, 11 Apr 2019 10:19:01 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=Qi1JUTyJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726644AbfDKRSC (ORCPT + 99 others); Thu, 11 Apr 2019 13:18:02 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:52197 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726391AbfDKRSC (ORCPT ); Thu, 11 Apr 2019 13:18:02 -0400 Received: by mail-wm1-f66.google.com with SMTP id 4so7697661wmf.1 for ; Thu, 11 Apr 2019 10:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YU4pt8v1ib9daIqRADi7BjOhLgd2e+YgnUqd1UEAUao=; b=Qi1JUTyJf8xSMMJjZ/Rqc8mykBoujCwm8OyHhkYLaVp4U3nx4hB5KfDAGasZtB2ESH PEtmXWeZDK0l3PAKb098WunYQ+2Ha9bl1I8zNNn4dB/VRwiVbdwblfWFGvlQLk8VcCN3 upmRAEqLbfbXj4fOk0drOnP9SJF/gnnfdyfwraHx9BbESMA3S9939zuVzGHKli95iO5E mzJqgDerPSnni7L7MqcLR96tjG1eScME6WGaoWe0QA9hc30D56Evlz84/Gidi2/w/rOX P9eFCRGZbCPHQjUTksZa3f/G0LhcEeuF28PY0aOGZmFye62gtfHg0qe9QHOAbR0yXbZc H7SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YU4pt8v1ib9daIqRADi7BjOhLgd2e+YgnUqd1UEAUao=; b=Qd+/rQMzDE0xlHNZH3Xn6Ztiq2hoB+bs6tMvvXvBlVAMBef7vV6ArTa+Av3iuBj5OV rpGXLrToAEzdhb6xD0JrfApfv1bFtFjbDB3rG0Z5rWUgV0hDy6m5Jfk7rda6dRSxmmEr 9Ot2Js3+YrLcLxYyH9LIeTbF5/kTRYVBZPfALYGXv/MQ5zP+UcluznTgdT7DYfXC/pSH cKBP8NwwNNUJu9tZJJl/0y6CpSvmSpI+cOS4WuLREq7LxfYpmK3rjfbnDNw+/UO4hQiU R2IGXv2ChZXRp0XYAvGAKSQrLPQtWI6gFb/WN4v1VrH/w1H7yAFtpUmyR2odCW1U+y+j RaCQ== X-Gm-Message-State: APjAAAWLtz54exb1o5U4fKpzCSvWG1Ztcn3gaGPVGjgYSzs7nWVqQb5b 2BaiWsXjZykHe0V+cfAjDqBRuA== X-Received: by 2002:a1c:7a03:: with SMTP id v3mr7983294wmc.58.1555003080775; Thu, 11 Apr 2019 10:18:00 -0700 (PDT) Received: from [192.168.8.100] (195.118.130.77.rev.sfr.net. [77.130.118.195]) by smtp.googlemail.com with ESMTPSA id w9sm11743768wmi.0.2019.04.11.10.17.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 10:18:00 -0700 (PDT) Subject: Re: [PATCH 4/7] clocksource/arm_arch_timer: Direcly assign set_next_event workaround To: Marc Zyngier , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Russell King , Will Deacon , Catalin Marinas , Mark Rutland , Wim Van Sebroeck , Guenter Roeck , Valentin Schneider References: <20190408154907.223536-1-marc.zyngier@arm.com> <20190408154907.223536-5-marc.zyngier@arm.com> From: Daniel Lezcano Message-ID: <0d051de8-35a9-61bd-5ac0-7180f19f7c01@linaro.org> Date: Thu, 11 Apr 2019 19:17:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190408154907.223536-5-marc.zyngier@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/04/2019 17:49, Marc Zyngier wrote: > When a given timer is affected by an erratum and requires an > alternative implementation of set_next_event, we do a rather > complicated dance to detect and call the workaround on each > set_next_event call. > > This is clearly idiotic, as we can perfectly detect whether > this CPU requires a workaround while setting up the clock event > device. > > This only requires the CPU-specific detection to be done a bit > earlier, and we can then safely override the set_next_event pointer > if we have a workaround associated to that CPU. > > Signed-off-by: Marc Zyngier Do you want me to take the patch ? Otherwise: Acked-by; Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog