From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752221AbbCEEgY (ORCPT ); Wed, 4 Mar 2015 23:36:24 -0500 Received: from sci-ig4.spreadtrum.com ([114.30.40.213]:23527 "EHLO shsqr01.spreadtrum.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751134AbbCEEgW (ORCPT ); Wed, 4 Mar 2015 23:36:22 -0500 From: "Rahul Khandelwal (Rahul Khandelwal)" To: Viresh Kumar CC: "rjw@rjwysocki.net" , "akpm@linux-foundation.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: RE: [PATCH 1/1] subsystem: CPU FREQUENCY DRIVERS- Set cpu_load calculation on current frequency Thread-Topic: [PATCH 1/1] subsystem: CPU FREQUENCY DRIVERS- Set cpu_load calculation on current frequency Thread-Index: AdBVg7wonhfr2gxHRMyLcKdG8wdEHf//sUgA//zERxA= Date: Thu, 5 Mar 2015 04:36:05 +0000 Message-ID: References: <1b91f4a2ffe8423ab3f06367a9652450@TPMBX01.spreadtrum.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [43.242.39.63] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-MAIL: shsqr01.spreadtrum.com t254a6Ce061414 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id t254aV1n017232 Hello Viresh, Thank you for your reply and the information. :) I have created the patch using the "diff -up" command, I think this way should be used to create patches as mentioned in Documentation/SubmittingPatches.. Could you please help me to know whether any kernel release using interactive governor ? or any way to share the patch the same in any kernel release. Otherwise I will share the patch to Android guys. -----Original Message----- From: Viresh Kumar [mailto:viresh.kumar@linaro.org] Sent: 03 March 2015 16:17 To: Rahul Khandelwal (Rahul Khandelwal) Cc: rjw@rjwysocki.net; akpm@linux-foundation.org; linux-kernel@vger.kernel.org; stable@vger.kernel.org Subject: Re: [PATCH 1/1] subsystem: CPU FREQUENCY DRIVERS- Set cpu_load calculation on current frequency Hi Newbie :) On 3 March 2015 at 12:59, Rahul Khandelwal (Rahul Khandelwal) wrote: > From: Rahul Khandelwal > > > > Explanation: When cpu governor fails to set the freq to target_freq, > the cpu_load calculation is incorrect which is calculating on target_freq. > > The cpu_load should be calculated on the pcpu->policy->cur not on the > target_freq, the cpu delta_time and delta_idle is calculated on > current freq. > > > > Signed-off-by: Rahul Khandelwal > Your company probably uses Microsoft exchange server (All do) and that corrupts these mails badly.. Over that I don't know what tool you used to send the patch as it doesn't look like 'git' for sure.. But that's not really a problem if you do it correctly.. > > --- kernel/drivers/cpufreq/cpufreq_interactive.c.orig 2015-03-03 > 12:22:39.070543314 +0530 .orig ?? > +++ kernel/drivers/cpufreq/cpufreq_interactive.c 2015-03-03 > 12:22:36.210543640 +0530 And that too on interactive governor. Before sending patches to Linux kernel, go through the rules please. Documentation/SubmittingPatches.. If you have gone through that it would have been nicer, anyway lets proceed. You haven't rebased this on any kernel or rc release of official Linux kernel, but on some release on Android. Android is kept separately and interactive governor is not part of mainline kernel. If you want this patch to go through, you need to use gerrit to send it to Android guys.. ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ¥Šwÿº{.nÇ+‰·¥Š{±þG«�éÿŠ{ayºʇڙë,j­¢f£¢·hš�ï�êÿ‘êçz_è®(­éšŽŠÝ¢j"�ú¶m§ÿÿ¾«þG«�éÿ¢¸?™¨è­Ú&£ø§~�á¶iO•æ¬z·švØ^¶m§ÿÿà ÿ¶ìÿ¢¸?–I¥