mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Levin, Alexander (Sasha Levin)" <alexander.levin@verizon.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"stable@vger.kernel.org" <stable@vger.kernel.org>
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
	"Levin, Alexander (Sasha Levin)" <alexander.levin@verizon.com>
Subject: [PATCH for 4.9 26/39] cpufreq: intel_pstate: Update pid_params.sample_rate_ns in pid_param_set()
Date: Mon, 18 Sep 2017 00:40:33 +0000	[thread overview]
Message-ID: <20170918004024.7247-9-alexander.levin@verizon.com> (raw)
In-Reply-To: <20170918004024.7247-1-alexander.levin@verizon.com>

From: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>

[ Upstream commit 6e7408acd04d06c04981c0c0fb5a2462b16fae4f ]

Fix the debugfs interface for PID tuning to actually update
pid_params.sample_rate_ns on PID parameters updates, as changing
pid_params.sample_rate_ms via debugfs has no effect now.

Fixes: a4675fbc4a7a (cpufreq: intel_pstate: Replace timers with utilization update callbacks)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
---
 drivers/cpufreq/intel_pstate.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index 80fa656da5ab..a59ae8e24d3d 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -609,6 +609,7 @@ static void intel_pstate_hwp_set_online_cpus(void)
 static int pid_param_set(void *data, u64 val)
 {
 	*(u32 *)data = val;
+	pid_params.sample_rate_ns = pid_params.sample_rate_ms * NSEC_PER_MSEC;
 	intel_pstate_reset_all_pid();
 	return 0;
 }
-- 
2.11.0

  parent reply	other threads:[~2017-09-18  0:46 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-18  0:40 [PATCH for 4.9 18/39] iommu/exynos: Block SYSMMU while invalidating FLPD cache Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 19/39] [media] exynos-gsc: Do not swap cb/cr for semi planar formats Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 22/39] netfilter: nfnl_cthelper: fix incorrect helper->expect_class_max Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 21/39] nvme-rdma: handle cpu unplug when re-establishing the controller Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 23/39] parisc: perf: Fix potential NULL pointer dereference Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 20/39] MIPS: smp-cps: Fix retrieval of VPE mask on big endian CPUs Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 25/39] ibmvnic: Free tx/rx scrq pointer array when releasing sub-crqs Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 24/39] nfs: make nfs4_cb_sv_ops static Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` Levin, Alexander (Sasha Levin) [this message]
2017-09-18  0:40 ` [PATCH for 4.9 27/39] x86/acpi: Restore the order of CPU IDs Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 31/39] rds: ib: add error handle Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 28/39] iommu/io-pgtable-arm: Check for leaf entry before dereferencing it Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 30/39] mm/cgroup: avoid panic when init with low memory Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 29/39] arm64: kasan: avoid bad virt_to_pfn() Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 34/39] i2c: meson: fix wrong variable usage in meson_i2c_put_data Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 32/39] md/raid10: submit bio directly to replacement disk Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 33/39] netfilter: nf_tables: set pktinfo->thoff at AH header if found Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 35/39] xfs: remove kmem_zalloc_greedy Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 39/39] tools/power turbostat: bugfix: GFXMHz column not changing Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 37/39] libata: transport: Remove circular dependency at free time Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 36/39] ASoC: wm_adsp: Return an error on write to a disabled volatile control Levin, Alexander (Sasha Levin)
2017-09-18  0:40 ` [PATCH for 4.9 38/39] ARM: dts: BCM5301X: Fix memory start address Levin, Alexander (Sasha Levin)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170918004024.7247-9-alexander.levin@verizon.com \
    --to=alexander.levin@verizon.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael.j.wysocki@intel.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®