From patchwork Fri Jul 18 15:37:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dirk.brandewie@gmail.com X-Patchwork-Id: 4586291 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 49253C0514 for ; Fri, 18 Jul 2014 15:37:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 84FD820179 for ; Fri, 18 Jul 2014 15:37:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A3C7D2013A for ; Fri, 18 Jul 2014 15:37:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422807AbaGRPhr (ORCPT ); Fri, 18 Jul 2014 11:37:47 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:57645 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422799AbaGRPhm (ORCPT ); Fri, 18 Jul 2014 11:37:42 -0400 Received: by mail-pd0-f181.google.com with SMTP id g10so3766254pdj.40 for ; Fri, 18 Jul 2014 08:37:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IFXgUiThPC9YWs1o7h7+yzIytiOBjzhwkQW8Nrxkf/I=; b=xjp4KgudmBO6ZUtaZ9QjuagJN+4//xoEpB6ifV2epIf/kIhwu8ncoPihUotRVf60xI eIPwg08UGh1tx8fP+HYATEPBZqQHKoFO8SULJNV5WXbypT5HgTz7uFOynhuWcEM3Rjnp v2YOJ22ndc9lTGh0KAxMzFK4Ouv9VZqYjE8atisViH300Bv+go1gLNrXOgluFHYRmh99 AGZ1LX5JON6Y3GO4EAfSvOSsdkatcCa1qO8kICsS10vWb+eVVTcn+Ck1yQ+fSI1EZ/oJ K30bIFU33qzVX2Y37bqs3KxfV69i7wM3Ft0T7T7OBPq/6KNNvNQbZ4H1Fm1AxAyb0Nnr rnvw== X-Received: by 10.70.128.140 with SMTP id no12mr6115169pdb.147.1405697861895; Fri, 18 Jul 2014 08:37:41 -0700 (PDT) Received: from echolake.localdomain (static-50-43-41-81.bvtn.or.frontiernet.net. [50.43.41.81]) by mx.google.com with ESMTPSA id be7sm7894439pdb.37.2014.07.18.08.37.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jul 2014 08:37:40 -0700 (PDT) From: dirk.brandewie@gmail.com X-Google-Original-From: dirk.j.brandewie@intel.com To: linux-pm@vger.kernel.org Cc: rjw@rjwysocki.net, Stratos Karafotis , Dirk Brandewie Subject: [PATCH 02/11] cpufreq: intel_pstate: Remove unnecessary type casting in div_s64() call Date: Fri, 18 Jul 2014 08:37:18 -0700 Message-Id: <1405697848-13546-3-git-send-email-dirk.j.brandewie@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1405697848-13546-1-git-send-email-dirk.j.brandewie@intel.com> References: <1405697848-13546-1-git-send-email-dirk.j.brandewie@intel.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Stratos Karafotis div_s64() accepts the divisor parameter as s32. Helper div_fp() also accepts divisor as int32_t. So, remove the unnecessary int64_t type casting. Signed-off-by: Stratos Karafotis Signed-off-by: Dirk Brandewie --- drivers/cpufreq/intel_pstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 601c428..e5fd780 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -50,7 +50,7 @@ static inline int32_t mul_fp(int32_t x, int32_t y) static inline int32_t div_fp(int32_t x, int32_t y) { - return div_s64((int64_t)x << FRAC_BITS, (int64_t)y); + return div_s64((int64_t)x << FRAC_BITS, y); } struct sample {