alistair23-linux/drivers/cpuidle
Hanjun Guo ef7e7d65eb cpuidle: sysfs: Accept governor name with 15 characters
CPUIDLE_NAME_LEN is 16, so it's possible to accept governor name
with 15 characters, but now store_current_governor() rejects
governor name with 15 characters as it returns -EINVAL if count
equals CPUIDLE_NAME_LEN.

Refactor the code to accept such case and simplify the code.

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
Reviewed-by: Doug Smythies <dsmythies@telus.net>
Tested-by: Doug Smythies <dsmythies@telus.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2020-05-19 17:41:17 +02:00
..
governors cpuidle: teo: Fix intervals[] array indexing bug 2020-01-13 11:14:58 +01:00
coupled.c cpuidle: coupled: fix warnings when compiling with W=1 2020-01-23 00:30:28 +01:00
cpuidle-arm.c ARM: cpuidle: Remove overzealous error logging 2019-08-09 17:51:39 +01:00
cpuidle-at91.c
cpuidle-big_little.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
cpuidle-calxeda.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 201 2019-05-30 11:29:52 -07:00
cpuidle-clps711x.c cpuidle: clps711x: convert to devm_platform_ioremap_resource() 2019-12-20 10:04:27 +01:00
cpuidle-cps.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
cpuidle-exynos.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
cpuidle-haltpoll.c cpuidle-haltpoll: Fix small typo 2020-04-08 14:35:45 +02:00
cpuidle-kirkwood.c cpuidle: kirkwood: convert to devm_platform_ioremap_resource() 2019-12-20 10:05:44 +01:00
cpuidle-mvebu-v7.c
cpuidle-powernv.c cpuidle: Consolidate disabled state checks 2019-11-06 13:19:56 +01:00
cpuidle-psci-domain.c cpuidle: psci: Add support for PM domains by using genpd 2020-01-02 16:52:57 +01:00
cpuidle-psci.c cpuidle: psci: Fixup execution order when entering a domain idle state 2020-05-15 18:37:36 +02:00
cpuidle-psci.h cpuidle: psci: Add support for PM domains by using genpd 2020-01-02 16:52:57 +01:00
cpuidle-pseries.c powerpc/pseries/cpuidle: Fix preempt warning 2018-12-04 19:45:01 +11:00
cpuidle-tegra.c cpuidle: tegra: Disable CC6 state if LP2 unavailable 2020-03-13 11:32:01 +01:00
cpuidle-ux500.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
cpuidle-zynq.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 201 2019-05-30 11:29:52 -07:00
cpuidle.c PM: QoS: Drop PM_QOS_CPU_DMA_LATENCY notifier chain 2020-02-13 11:26:27 +01:00
cpuidle.h cpuidle: allow governor switch on cpuidle_register_driver() 2019-09-11 17:36:30 +02:00
driver.c cpuidle: Drop unused cpuidle_driver_ref/unref() functions 2020-01-09 16:47:22 +01:00
dt_idle_states.c cpuidle: dt: Support hierarchical CPU idle states 2020-01-02 16:50:08 +01:00
dt_idle_states.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
governor.c cpuidle: Call cpu_latency_qos_limit() instead of pm_qos_request() 2020-02-13 11:26:57 +01:00
Kconfig cpuidle: Fix Kconfig indentation 2019-11-29 11:47:35 +01:00
Kconfig.arm cpuidle: Refactor and move out NVIDIA Tegra20 driver into drivers/cpuidle 2020-03-13 11:31:58 +01:00
Kconfig.mips treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Kconfig.powerpc treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile cpuidle: Refactor and move out NVIDIA Tegra20 driver into drivers/cpuidle 2020-03-13 11:31:58 +01:00
poll_state.c cpuidle: Drop disabled field from struct cpuidle_state 2019-11-29 11:48:39 +01:00
sysfs.c cpuidle: sysfs: Accept governor name with 15 characters 2020-05-19 17:41:17 +02:00