From patchwork Sun Sep 25 12:13:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 9349685 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 27B46607F0 for ; Sun, 25 Sep 2016 12:14:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1899428DA5 for ; Sun, 25 Sep 2016 12:14:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D7C728DA9; Sun, 25 Sep 2016 12:14:18 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC05728DA5 for ; Sun, 25 Sep 2016 12:14:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966303AbcIYMOQ (ORCPT ); Sun, 25 Sep 2016 08:14:16 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:34966 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965989AbcIYMOP (ORCPT ); Sun, 25 Sep 2016 08:14:15 -0400 Received: by mail-pa0-f66.google.com with SMTP id zl8so731196pac.2 for ; Sun, 25 Sep 2016 05:14:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UCx0v4wldCXKGRnYOk+jqk6wLh7SdRHdIyGX5YFMjoY=; b=FJEaiD8YA1kF89ccYZj60G7yndYkrgUHUeO1S61SMQ/1eWyU2fEljwbd14VUtkeoJG D9g9DBLyHj+apIAIfZ7eIDTAWNFhoM9ynEOT3QTCvP/9evjUfo664r/6zSvbzP69ar0o 2tELsmH4QJkx8cyDxaAMIOvVGAczh3XwzEQtJKPseXWTnxS9xpBHicGd55surSeNQfzL oae0ydomuPxM0OJwFyTppKkb2rGnUlRTrGhuQaeBcy9ag2Ye+GwAmHpNl17ex+NqNf+4 MURzmxFP9DzpUOt6gguVkxxJipVVG6I0DB1QIeAlFdhSgcw0HGI1LYqCqh5htNzk1OVP ER6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UCx0v4wldCXKGRnYOk+jqk6wLh7SdRHdIyGX5YFMjoY=; b=VAq5LLQVqD6ekGuIZDWDGViBdGMjLt+dHBy2sydOPQBZ9paBLVg8s63+buDTfY2xQ3 ACUjlWlX2rrnGhxRJzYBVSLZBUO9trl/cku6rCtiofzwexSE/ru6piaSnMhJKWjXFT9G yPdI4zol1V2O65lvMjC+qFwtvxn0oYo9FeouTc/t2GZ4XmwxlBoJZP8qRKTmSrF2eJqN 9abTYIdY8VEuhZDwBR0wX5IGLlNB2vCTphWWSYgXxElTEftRhzq6TWr8PBbV7hNAb534 TmbNtrrwTE+JcFzQjCVSluOFUG9p5UND1wZdVBXoAupxa363YNUcIKyimixgwHcN9EE1 MLqg== X-Gm-Message-State: AE9vXwN6HzTauQxI/bNG9O43AzsZnfB1i+Bb8VrggdF3rePWpsImdYeQLlizb5Rx7TNwZg== X-Received: by 10.66.177.193 with SMTP id cs1mr29198721pac.140.1474805654247; Sun, 25 Sep 2016 05:14:14 -0700 (PDT) Received: from localhost.localdomain (223-137-0-10.EMOME-IP.hinet.net. [223.137.0.10]) by smtp.gmail.com with ESMTPSA id e21sm23617972pfb.96.2016.09.25.05.14.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 05:14:13 -0700 (PDT) From: Axel Lin To: "Rafael J . Wysocki" Cc: Chanwoo Choi , MyungJoo Ham , Kyungmin Park , linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Axel Lin Subject: [PATCH v2 2/2] PM / devfreq: exynos-nocp: Remove redundant code to reset load_count/total_count Date: Sun, 25 Sep 2016 20:13:58 +0800 Message-Id: <1474805638-30407-2-git-send-email-axel.lin@ingics.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474805638-30407-1-git-send-email-axel.lin@ingics.com> References: <1474805638-30407-1-git-send-email-axel.lin@ingics.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is done by devfreq_event_get_event() so remove the redundant code in exynos_nocp_get_event(). Signed-off-by: Axel Lin Acked-by: Chanwoo Choi --- v2: only add Chanwoo's Ack. drivers/devfreq/event/exynos-nocp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/devfreq/event/exynos-nocp.c b/drivers/devfreq/event/exynos-nocp.c index a584140..49e712a 100644 --- a/drivers/devfreq/event/exynos-nocp.c +++ b/drivers/devfreq/event/exynos-nocp.c @@ -176,9 +176,6 @@ static int exynos_nocp_get_event(struct devfreq_event_dev *edev, return 0; out: - edata->load_count = 0; - edata->total_count = 0; - dev_err(nocp->dev, "Failed to read the counter of NoC probe device\n"); return ret;