From patchwork Tue Sep 20 08:57:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 9341349 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 ADD3460B16 for ; Tue, 20 Sep 2016 08:58:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9EA0429D7E for ; Tue, 20 Sep 2016 08:58:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9375D29D80; Tue, 20 Sep 2016 08:58:10 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 3220529D7D for ; Tue, 20 Sep 2016 08:58:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932337AbcITI56 (ORCPT ); Tue, 20 Sep 2016 04:57:58 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:35847 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932282AbcITI54 (ORCPT ); Tue, 20 Sep 2016 04:57:56 -0400 Received: by mail-pa0-f66.google.com with SMTP id my20so646205pab.3 for ; Tue, 20 Sep 2016 01:57:56 -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=mmh4WbD0tJyCo0uXRPqZKAcOW1tk21Rf9178xc2COWk=; b=TiqlNQxEI8m4nfpTNUJhOhnHSjl1JEC2UzlxhGnCWOmGahrI/8Rkzfkj7fWdiGUqrO zlNVEKp68SjPx23FibJex4WL/x2SLC8eQYgXPAbLqX/qJeDVEElLz/+CwYPofB7qgTI+ yHs8gqQh7MfQqsDW56OFQGwvmql4Bl2mIWKIYaZ3OkDiegjEhiLFkubJYDxs4/a3byRZ TznQuDODn6QJsmL4RIfL6QRxsCT6ytRit7GZhUUP8Kwm0OYOziPpjtQg0Yi2vF8ml1uT fihTzqkB6chUotQBIka8/AN22bKH3AlOLydmDg6zEZqqshOhYLYAK4VNzaiP/gIK7Pp/ X2DQ== 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=mmh4WbD0tJyCo0uXRPqZKAcOW1tk21Rf9178xc2COWk=; b=ZCpoVjVtVmnTmoUiXuXMrWhpvKDyJT4fg2NeRTlhHTPOIyfBlhCyQYb9IqMH4aYsV/ lA05zTeveThmBsMRzRFUaTb5EeA1BWnTtFfvI9SmVTCBA2/599cektA3u20Y5XL06GYE gHEpmhi60i5KGiXk8CHX5yBNcDHo2xLwVCzNHtls5IUTP5CGuENro+5E5AcMB56IIgZX kQhly1zW3W3HfRDKhtYBMdpjdEEzu1Fzi4CXcwsATY/FhpQVv/8jRA3Y+iXiD/HX7J/f I77WIyrg8MOMK1onofZy15sB250KJmzO20YgL2B1KRjLKm2S6pHTs72cscFeCS5xYnvK xLKQ== X-Gm-Message-State: AE9vXwNRv3a6F+i7z3v2FxoO6hstZ+hSGbHKPkq2Is/nAIWEKwl5+A3nVqTIbvkNUTcYxg== X-Received: by 10.66.52.42 with SMTP id q10mr53545187pao.34.1474361875626; Tue, 20 Sep 2016 01:57:55 -0700 (PDT) Received: from localhost.localdomain (59-115-243-103.dynamic.hinet.net. [59.115.243.103]) by smtp.gmail.com with ESMTPSA id yu7sm37331826pab.45.2016.09.20.01.57.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Sep 2016 01:57:55 -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 2/2] PM / devfreq: exynos-nocp: Remove redundant code to reset load_count/total_count Date: Tue, 20 Sep 2016 16:57:43 +0800 Message-Id: <1474361863-2319-2-git-send-email-axel.lin@ingics.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474361863-2319-1-git-send-email-axel.lin@ingics.com> References: <1474361863-2319-1-git-send-email-axel.lin@ingics.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 --- 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;