summaryrefslogtreecommitdiff
path: root/include/linux/mutex_api.h
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2026-01-05 06:37:06 -0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-01-09 21:52:54 +0100
commitfcbd7897b871e157ee5c595e950c8466d86c0cd5 (patch)
tree54b832f1ee57b3a0f5982f6d5666f72b3e3e1f57 /include/linux/mutex_api.h
parentbe6a150829b375c1b53d7ea5794ccc9edd2e0c9c (diff)
cpuidle: menu: Remove incorrect unlikely() annotation
The unlikely() annotation on the early-return condition in menu_select() is incorrect on systems with only one idle state (e.g., ARM64 servers with a single ACPI LPI state). Branch profiling shows 100% misprediction on such systems since drv->state_count <= 1 is always true. On platforms where only state0 is available, this path is the common case, not an unlikely edge case. Remove the misleading annotation to let the branch predictor learn the actual behavior. Signed-off-by: Breno Leitao <leitao@debian.org> Link: https://patch.msgid.link/20260105-annotated_idle-v1-1-10ddf0771b58@debian.org Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/mutex_api.h')
0 files changed, 0 insertions, 0 deletions