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: 9341353 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 2F17C607D0 for ; Tue, 20 Sep 2016 08:58:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21C0E29D7B for ; Tue, 20 Sep 2016 08:58:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16EA829D7E; Tue, 20 Sep 2016 08:58:11 +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 1156329D7B for ; Tue, 20 Sep 2016 08:58:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932382AbcITI56 (ORCPT ); Tue, 20 Sep 2016 04:57:58 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:34935 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932368AbcITI54 (ORCPT ); Tue, 20 Sep 2016 04:57:56 -0400 Received: by mail-pa0-f68.google.com with SMTP id hi10so646676pac.2 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=KzFKTt2aonWHJKUV93AU2TBF9Gi1cCV63hfJ5dq/jYil+kz5ihiliWew1sbonG3/5e GkTyd8cRvoUEJu586pkVBEeLJF7ChDn/s0ou5Dgy6f5ZutJtPc4QK9Yn/1iluOUqXsed yUmjD0/upVpAXVR9meOQyRf8v4G0nClMl99G56eHGNNuHYvcP02+sNZ8V4IQdmYi2qku LPPK7TAlFLAzfOjyO6ixO+l9VtzTycrnejptE9dTMJLnt9XC1XVB0Um11IAjpe/3oPVR x9ujDZrEuX05zo3uHMEXHaiyX5sYdUso1cRPiLB/gADcJo/+H5tWltsAg39lj1YL4DK7 LDlg== X-Gm-Message-State: AE9vXwNe6Vfq709YhLVYotOP4vLOWJGv00Rq7ur4eXkV9P7gcmdd6dlxWkAnQTSSYsaHCw== 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-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 --- 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;