Message ID | 20200716051130.4359-3-leo.yan@linaro.org (mailing list archive) |
---|---|
State | Mainlined |
Commit | aadd6e5caaacd6feca9691ba30536e7de5a7d152 |
Headers | show
Return-Path: <SRS0=jmAa=A3=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 17EAE13A4 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 16 Jul 2020 05:13:39 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E4C32207BB for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 16 Jul 2020 05:13:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="CzsOLMZT"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hc4i2Nr6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E4C32207BB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KbkVdPpgBlGMYveqfIvafSHjnS/qhhBhuAeMSl0g8iI=; b=CzsOLMZTeJeeaC5pG1Y2fu6u9f vpmn6qijq9UfJZ98/pChI34MbUw+0ouPqMPgBdwfAR+UhYxnDWjn3NhO4Dfntxm1kEZ/6OMYibDGG Z1HAkn4wLJdRdU2qMDkWWAuYpet+OeghxSpL7C2+L56HSSrWZwftBHldODvd5x11m6HEo+/LB/XUZ nJAk9pznspBWvW3bOOfrrjzkgmPxuu+AGnyDM0/rpbJMzZubPoADrXOcrrlF7jwI0VKvThr9Zz5+J ZJDScfnqi/J5T96ogBoJwIR3fFL4tglr33BAwcBewZHYZa+QW7z97Zf6sIgmqyvePOdTwi9OQKbsR +XZp2UKA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvwBp-0005VW-DR; Thu, 16 Jul 2020 05:12:13 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvwBm-0005UM-7s for linux-arm-kernel@lists.infradead.org; Thu, 16 Jul 2020 05:12:11 +0000 Received: by mail-pg1-x543.google.com with SMTP id g67so4251314pgc.8 for <linux-arm-kernel@lists.infradead.org>; Wed, 15 Jul 2020 22:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=o/BsIfvqtTzak5Mv7ZiI0+KdUGs6co1ng50/6qYskQE=; b=hc4i2Nr6oqKqPE2jXwZbSn/Rbqv8nFoXy79RI3Lk97cBQGfRExofkvamCUf5Oo9J3N yCVbSC24M4e2k7egLH4YemLumM88fh51oKP7zE1T2CXUyJgLVTt7zf5bS1cYwcC4edI3 OGbsrEH/Xs2i9s0VV4IZDrB9e8OdDk9HfV1N3c3VbJtQ2oyhg4/xn6JqKVC4r34xpeXU RQAJxud14c57X1UIFFQunjHv7cruYPst8np7S+LsS/NvbvI6kHk4MzxV8aLmCTglWn/n B7FEK/9bbc3vgOnpC4QiAUgC6nxpnuYTSjJN+xkPXFlz5XLXb4WqqjEFKbm7lrl/n4xh 5IPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=o/BsIfvqtTzak5Mv7ZiI0+KdUGs6co1ng50/6qYskQE=; b=XF43FFQrYbjDGE+4+5HqgcyH1mfVIcpUW8/IaWD1h6Aso3ZREvrb8/Is+N0k+sIYS9 MrAJSkE/n+N4lAIpKhVdjdhtO2ilBIPShUDRexORcmdwir8L5ejyEYX0wUP2nQ9GhY+y W/eTQ2U+oIuUN3wCe2l66jIlMPVUN2ac9N2BONP6XYOUi73x4pFPeFoqkz0woWp8P8OV g40U89U09ftUY8FzLY9aoTAdbsjomZmM86NSb/WLsyKqyqiUaytji2I3L4Fo8xxuA/5J LolA3h5AoDZ1YB2JnRIs4/Ej2sHydb12Gc4dgzbUpms4iWz1S0CDfP/hoBiOt6wA9sA+ wlfw== X-Gm-Message-State: AOAM530VQooNFevsKjjGz/n1+HEU68nR5+yFKj4X2FjxKF1SxQD5i4KY X4C38MMLAM669lR8AnEmsyCcXQ== X-Google-Smtp-Source: ABdhPJwB25v0txIQiG1pHuN6YTqIfWIpOVf/k+duttLSriG0rbXE+fdtIvbK4/pYXJVfwXjm2oYlcA== X-Received: by 2002:a62:a217:: with SMTP id m23mr2175657pff.291.1594876328190; Wed, 15 Jul 2020 22:12:08 -0700 (PDT) Received: from localhost ([2400:8904::f03c:91ff:fe8a:bbe4]) by smtp.gmail.com with ESMTPSA id a26sm3499222pgm.20.2020.07.15.22.12.07 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Jul 2020 22:12:07 -0700 (PDT) From: Leo Yan <leo.yan@linaro.org> To: Peter Zijlstra <peterz@infradead.org>, Will Deacon <will@kernel.org>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>, Catalin Marinas <catalin.marinas@arm.com>, Thomas Gleixner <tglx@linutronix.de>, "Ahmed S. Darwish" <a.darwish@linutronix.de>, "Ben Dooks (Codethink)" <ben.dooks@codethink.co.uk>, Paul Cercueil <paul@crapouillou.net>, Adrian Hunter <adrian.hunter@intel.com>, Kan Liang <kan.liang@linux.intel.com>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 2/7] time/sched_clock: Use raw_read_seqcount_latch() Date: Thu, 16 Jul 2020 13:11:25 +0800 Message-Id: <20200716051130.4359-3-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200716051130.4359-1-leo.yan@linaro.org> References: <20200716051130.4359-1-leo.yan@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200716_011210_294198_751ED907 X-CRM114-Status: GOOD ( 14.25 ) X-Spam-Score: 3.4 (+++) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (3.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:543 listed in] [list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [2400:8904:0:0:f03c:91ff:fe8a:bbe4 listed in] [zen.spamhaus.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Leo Yan <leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
arm64: perf: Proper cap_user_time* support
|
expand
|
diff --git a/kernel/time/sched_clock.c b/kernel/time/sched_clock.c index 0acaadc3156c..0deaf4b79fb4 100644 --- a/kernel/time/sched_clock.c +++ b/kernel/time/sched_clock.c @@ -70,7 +70,7 @@ static inline u64 notrace cyc_to_ns(u64 cyc, u32 mult, u32 shift) struct clock_read_data *sched_clock_read_begin(unsigned int *seq) { - *seq = raw_read_seqcount(&cd.seq); + *seq = raw_read_seqcount_latch(&cd.seq); return cd.read_data + (*seq & 1); }