Go to file
Rafael J. Wysocki a44d0904d6 cpufreq: intel_pstate: Rearrange show_no_turbo() and store_no_turbo()
[ Upstream commit c626a43845 ]

Now that global.turbo_disabled can only change at the cpufreq driver
registration time, initialize global.no_turbo at that time too so they
are in sync to start with (if the former is set, the latter cannot be
updated later anyway).

That allows show_no_turbo() to be simlified because it does not need
to check global.turbo_disabled and store_no_turbo() can be rearranged
to avoid doing anything if the new value of global.no_turbo is equal
to the current one and only return an error on attempts to clear
global.no_turbo when global.turbo_disabled.

While at it, eliminate the redundant ret variable from store_no_turbo().

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Stable-dep-of: 350cbb5d2f ("cpufreq: intel_pstate: Check turbo_is_disabled() in store_no_turbo()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-09-09 18:56:34 +02:00
arch riscv: use lw when reading int cpu in asm_per_cpu 2025-09-09 18:56:34 +02:00
block block: reject invalid operation in submit_bio_noacct 2025-08-28 16:28:40 +02:00
certs
crypto crypto: jitter - fix intermediary handling 2025-08-28 16:28:26 +02:00
Documentation netlink: add variable-length / auto integers 2025-09-09 18:56:22 +02:00
drivers cpufreq: intel_pstate: Rearrange show_no_turbo() and store_no_turbo() 2025-09-09 18:56:34 +02:00
fs btrfs: adjust subpage bit start based on sectorsize 2025-09-09 18:56:30 +02:00
include PCI/MSI: Add an option to write MSIX ENTRY_DATA before any reads 2025-09-09 18:56:29 +02:00
init
io_uring io_uring/net: commit partial buffers on retry 2025-08-28 16:28:11 +02:00
ipc
kernel sched: Fix sched_numa_find_nth_cpu() if mask offline 2025-09-09 18:56:26 +02:00
lib netlink: add variable-length / auto integers 2025-09-09 18:56:22 +02:00
LICENSES
mm mm: slub: avoid wake up kswapd in set_track_prepare 2025-09-09 18:56:34 +02:00
net net: dsa: microchip: linearize skb for tail-tagging switches 2025-09-09 18:56:31 +02:00
rust
samples
scripts kconfig: lxdialog: fix 'space' to (de)select options 2025-08-28 16:28:29 +02:00
security apparmor: use the condition in AA_BUG_FMT even with debug disabled 2025-08-28 16:28:28 +02:00
sound ALSA: hda/realtek: Fix headset mic for TongFang X6[AF]R5xxY 2025-09-09 18:56:32 +02:00
tools tools: gpio: remove the include directory on make clean 2025-09-09 18:56:34 +02:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile Linux 6.6.104 2025-09-04 15:30:29 +02:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.