From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752705AbdGHHZV (ORCPT ); Sat, 8 Jul 2017 03:25:21 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:36055 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751175AbdGHHZU (ORCPT ); Sat, 8 Jul 2017 03:25:20 -0400 Subject: Re: [PATCH] cpu_pm: replace raw_notifier to atomic_notifier To: Sebastian Andrzej Siewior Cc: open list , Thomas Gleixner , Anders Roxell , Rik van Riel , Steven Rostedt , "Rafael J . Wysocki" , Daniel Lezcano , linux-rt-users References: <1499330866-19520-1-git-send-email-alex.shi@linaro.org> <20170707102527.bg7ktbkazxl3qpqt@linutronix.de> From: Alex Shi Message-ID: <2bf3cdfa-f8b6-9d32-b3b5-33900cb9122a@linaro.org> Date: Sat, 8 Jul 2017 15:25:14 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170707102527.bg7ktbkazxl3qpqt@linutronix.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/07/2017 06:25 PM, Sebastian Andrzej Siewior wrote: > On 2017-07-06 16:47:46 [+0800], Alex Shi wrote: >> This patch replace a rwlock and raw notifier by atomic notifier which > + is >> protected by spin_lock and rcu. > … >> Sebastian suggested using atomic_notifier instead of rwlock, which is not >> only removing the sleeping in idle, but also getting better latency >> improvement. > > Did you measure this / have numbers or did you write this because this > is what RCU does in general? Uh, I have no number on the performance. The benefit is in the theory. https://lwn.net/Articles/263130/ But above article give some comparison data of rwlock and RCU. > > Acked-by: Sebastian Andrzej Siewior > Thanks a lot! Regards Alex