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: 90126 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp9361415qgi; Fri, 6 Jan 2017 01:16:14 -0800 (PST) X-Received: by 10.84.134.3 with SMTP id 3mr163966686plg.90.1483694174434; Fri, 06 Jan 2017 01:16:14 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id y128si78868065pgy.46.2017.01.06.01.16.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Jan 2017 01:16:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org 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" 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);