Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp249796pxb; Wed, 3 Feb 2021 04:48:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwAw0OjCSPk3MWJ5TU/w6/k5llSqnVrWtqf5SVL1/i7lSsH9x7UVjBBzVyjAdI/XqCAG+wi X-Received: by 2002:a17:906:4051:: with SMTP id y17mr561493ejj.45.1612356497027; Wed, 03 Feb 2021 04:48:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612356497; cv=none; d=google.com; s=arc-20160816; b=DrHX1G+Ou0v76ab9syqcI1MJTytqCkBoDkBHetKi019vpYZkneCOXfaMZctoaJVrd9 3BcZxHSgoGnWNjYRnLWrxwTECSuQPPzfjJvBBwytbsqbE79oHCvOkbkMaChbJM36/k/e X4gMmlbDUHUGLauMLuRSSgdE9BlQ0WoeWW7A1X5nAmOlaNDkDozdFV7NWCZMNbVVBio0 YxdArHgpIInST/u9/gglYxOmN0NcM9iiKPR3gMKC3j7cKG0GqxExIHalZcz/1dcQXWNN nmhb+iFcLJzE1fEgR16BU1H2cToADRK+80cXmy0bfxNyeyBr07HZRuOnhW3Umq0MqlMb ZndA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=JaPOqo+BEBFOZyupIrBWjmhgD0OCRwf2ewG+K4foXi0=; b=WcoB3ARjfvS7uhuvxaHBpJCCDB7l0VYgx7sY4ZsbS5yXxv4LQQzot+d+GDEQtFqcZr lrl2faREtAbip92PPyIBYjXpYIrjdC0ch1YSK7vFSsGHpviod3DTT2SiMaxWsocP2y39 3nOAcF1chyq6lZ3SxY42KAKMkn6/n5ab1pugGmEkKqx1S+rX5eRoSZ0L3NLhxC8MUbuT i1iLTjkVoQgTKsU41//TwClCDL9mBF3MDo9csZPeKhfsqZhilnXlNzRjPdjat89Harhl Uy/I4Bfs4fSLSORXfnxtVdV2xSBCfn1qdJDGb0clgYh1vagrjglXx4mWh7QcVRdSExwA HaeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fx4si1307464ejb.157.2021.02.03.04.47.53; Wed, 03 Feb 2021 04:48:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231280AbhBCMoR (ORCPT + 99 others); Wed, 3 Feb 2021 07:44:17 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:12409 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229852AbhBCMnK (ORCPT ); Wed, 3 Feb 2021 07:43:10 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DW1Wh06gwzjHFL; Wed, 3 Feb 2021 20:41:20 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.498.0; Wed, 3 Feb 2021 20:42:17 +0800 From: Xiaofei Tan To: , CC: Xiaofei Tan , , , Subject: [PATCH 0/6] spin lock usage optimization for RTC drivers Date: Wed, 3 Feb 2021 20:39:35 +0800 Message-ID: <1612355981-6764-1-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace spin_lock_irqsave with spin_lock in hard IRQ of RTC drivers. There is no function changes, but may speed up if interrupt happen too often. Xiaofei Tan (6): rtc: cmos: Replace spin_lock_irqsave with spin_lock in hard IRQ rtc: pm8xxx: Replace spin_lock_irqsave with spin_lock in hard IRQ rtc: r7301: Replace spin_lock_irqsave with spin_lock in hard IRQ rtc: tegra: Replace spin_lock_irqsave with spin_lock in hard IRQ rtc: mxc: Replace spin_lock_irqsave with spin_lock in hard IRQ rtc: mxc_v2: Replace spin_lock_irqsave with spin_lock in hard IRQ drivers/rtc/rtc-cmos.c | 5 ++--- drivers/rtc/rtc-mxc.c | 5 ++--- drivers/rtc/rtc-mxc_v2.c | 7 +++---- drivers/rtc/rtc-pm8xxx.c | 9 ++++----- drivers/rtc/rtc-r7301.c | 5 ++--- drivers/rtc/rtc-tegra.c | 6 +++--- 6 files changed, 16 insertions(+), 21 deletions(-) -- 2.8.1