linux/arch/powerpc
Kuan-Wei Chiu e08c43e6c3 powerpc/perf: Optimize find_alternatives_list() using binary search
This patch improves the performance of event alternative lookup by
replacing the previous linear search with a more efficient binary
search. This change reduces the time complexity for the search process
from O(n) to O(log(n)). A pre-sorted table of event values and their
corresponding indices has been introduced to expedite the search
process.

Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
[mpe: Call the array "presort*ed*_event_table", minor formatting]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231013175714.2142775-1-visitorckw@gmail.com
2023-10-19 23:18:59 +11:00
..
boot powerpc: dts: add missing space before { 2023-08-25 08:39:30 +10:00
configs powerpc/configs: Remove ReiserFS from defconfig 2023-09-19 20:36:20 +10:00
crypto This push fixes a random config build failure on powerpc. 2023-09-01 15:39:25 -07:00
include powerpc/io: Expect immutable pointer in virt_to_phys() prototype 2023-10-19 17:16:20 +11:00
kernel powerpc: Hide empty pt_regs at base of the stack 2023-10-19 21:38:29 +11:00
kexec powerpc: Annotate endianness of various variables and functions 2023-10-19 17:12:47 +11:00
kvm powerpc: Remove extern from function implementations 2023-10-19 17:12:47 +11:00
lib powerpc/qspinlock: Fix stale propagated yield_cpu 2023-10-18 21:07:21 +11:00
math-emu powerpc/math-emu: Inhibit W=1 warnings 2022-09-08 11:11:18 +10:00
mm powerpc: Annotate endianness of various variables and functions 2023-10-19 17:12:47 +11:00
net powerpc: Use NULL instead of 0 for null pointers 2023-10-19 17:12:47 +11:00
perf powerpc/perf: Optimize find_alternatives_list() using binary search 2023-10-19 23:18:59 +11:00
platforms powerpc/fadump: Annotate endianness cast with __force 2023-10-19 17:16:20 +11:00
purgatory powerpc/purgatory: remove PGO flags 2023-06-12 11:31:50 -07:00
sysdev powerpc: Explicitly reverse bytes when checking for byte reversal 2023-10-19 17:12:47 +11:00
tools powerpc/ftrace: Add support for -fpatchable-function-entry 2023-08-22 00:09:06 +10:00
xmon TTY/Serial driver changes for 6.6-rc1 2023-09-01 09:38:00 -07:00
Kbuild
Kconfig powerpc/mm: Allow ARCH_FORCE_MAX_ORDER up to 12 2023-10-15 20:55:03 +11:00
Kconfig.debug powerpc: Use shared font data 2023-10-01 23:09:02 +11:00
Makefile powerpc/64s: Move CPU -mtune options into Kconfig 2023-08-25 08:39:29 +10:00
Makefile.postlink kbuild: remove --include-dir MAKEFLAG from top Makefile 2023-02-05 18:51:22 +09:00