From patchwork Fri Jan 6 09:15:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 9500261 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3CF3A606B4 for ; Fri, 6 Jan 2017 09:16:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21F9127EED for ; Fri, 6 Jan 2017 09:16:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1709328434; Fri, 6 Jan 2017 09:16:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A317527EED for ; Fri, 6 Jan 2017 09:16:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 489966E999; Fri, 6 Jan 2017 09:16:07 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 883B56E999 for ; Fri, 6 Jan 2017 09:16:05 +0000 (UTC) Received: by mail-wm0-x22c.google.com with SMTP id k184so20604303wme.1 for ; Fri, 06 Jan 2017 01:16:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=diLTVDHU9/3CeZupLtB6RYIc6oxdEdIDtCLXEUlTE04=; b=N4rrmJI+bYxnyHvZ2VV2zKSmtM63wtCWRFZqHNGcnr7KhRpgZWJOHUlghfiBlB3NGp mH8mUeR9reCIO0sVqR7NZIUTdd38T44DkNGs+iCWJfNb6YkQCr0lcKM5w0BWq4CcEU9P O/JqkM+ieTFIJlvq42IBTIMxb+cdgxbuJxxv4= 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; bh=diLTVDHU9/3CeZupLtB6RYIc6oxdEdIDtCLXEUlTE04=; b=EqaQHgG9bhtl8P7QvFkoAbGUiWojQlrR8N9i0EbDkgIH1IZlNi570ma56K3lODghEK C+l680kQonsS7Xt7crmazdEG/E74zbtamNfX5kImQryMI3DH78gdlFuNu5t9URBzIfZR inblR99Gat5/MNpEHmhRelp+NUBOvUW2ivlMOld6LakUvwtgdhAgELoYq2tz4bYL3vSe fppdKrIO36cY/B3DFNEJGHnUzP5imFlsxZIifMxsCQ5PN+aJdXNFvsdVMcy5dLLpzxmd qjSndbIzPpqnNVn6MXBtdAcyDAJUJtbF3y7/N1bIhLmNX4K6+RkFA9dL/Y/AaOeQvDm8 rLtQ== X-Gm-Message-State: AIkVDXLakJEIHLQVjNuzJoJCtnR91RjBLpEYrUH4dqoJb1Dlfkqk1Zzg45eLpz0HsBBgKzAq X-Received: by 10.28.97.139 with SMTP id v133mr2606090wmb.117.1483694163752; Fri, 06 Jan 2017 01:16:03 -0800 (PST) Received: from lmenx321.st.com. ([80.214.73.144]) by smtp.gmail.com with ESMTPSA id ct7sm107711861wjc.2.2017.01.06.01.16.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jan 2017 01:16:03 -0800 (PST) From: Benjamin Gaignard To: dri-devel@lists.freedesktop.org, vincent.abriou@st.com Subject: [PATCH v2 1/2] drm: crc: Call wake_up_interruptible() each time there is a new CRC entry Date: Fri, 6 Jan 2017 10:15:03 +0100 Message-Id: <1483694104-25627-1-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 Cc: Daniel Vetter , Tomeu Vizoso X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Each time new data has being added in CRC list inform reader by calling wake_up_interruptible(). This should avoid to do it in all drivers. Signed-off-by: Benjamin Gaignard Cc: Tomeu Vizoso Cc: Daniel Vetter --- drivers/gpu/drm/drm_debugfs_crc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_debugfs_crc.c b/drivers/gpu/drm/drm_debugfs_crc.c index 8b0eeee..96891c4 100644 --- a/drivers/gpu/drm/drm_debugfs_crc.c +++ b/drivers/gpu/drm/drm_debugfs_crc.c @@ -363,6 +363,8 @@ int drm_crtc_add_crc_entry(struct drm_crtc *crtc, bool has_frame, spin_unlock(&crc->lock); + wake_up_interruptible(&crc->wq); + return 0; } EXPORT_SYMBOL_GPL(drm_crtc_add_crc_entry);