[3.16.y-ckt stable] Patch "cpufreq: intel_pstate: Remove unnecessary type casting in div_s64() call" has been added to staging queue
Luis Henriques
luis.henriques at canonical.com
Mon Oct 19 14:21:38 UTC 2015
This is a note to let you know that I have just added a patch titled
cpufreq: intel_pstate: Remove unnecessary type casting in div_s64() call
to the linux-3.16.y-queue branch of the 3.16.y-ckt extended stable tree
which can be found at:
http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.16.y-queue
This patch is scheduled to be released in version 3.16.7-ckt19.
If you, or anyone else, feels it should not be added to this tree, please
reply to this email.
For more information about the 3.16.y-ckt tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable
Thanks.
-Luis
------
>From dba2c0bb77c40186e04be363e717da1683a6b738 Mon Sep 17 00:00:00 2001
From: Stratos Karafotis <stratosk at semaphore.gr>
Date: Fri, 18 Jul 2014 08:37:18 -0700
Subject: cpufreq: intel_pstate: Remove unnecessary type casting in div_s64()
call
commit fa30dff9a81ea9fdc2e985a14fe14ce6393a3214 upstream.
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 <stratosk at semaphore.gr>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie at intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki at intel.com>
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
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 0a91eea08198..08f653669a52 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);
}
static inline int ceiling_fp(int32_t x)
More information about the kernel-team
mailing list