deepin-kernel/Documentation
Samuel Holland fd76f623b9 arch: add ARCH_HAS_KERNEL_FPU_SUPPORT
[ Upstream commit 6cbd1d6d36 ]

Several architectures provide an API to enable the FPU and run
floating-point SIMD code in kernel space.  However, the function names,
header locations, and semantics are inconsistent across architectures, and
FPU support may be gated behind other Kconfig options.

provide a standard way for architectures to declare that kernel space
FPU support is available. Architectures selecting this option must
implement what is currently the most common API (kernel_fpu_begin() and
kernel_fpu_end(), plus a new function kernel_fpu_available()) and
provide the appropriate CFLAGS for compiling floating-point C code.

Link: https://lkml.kernel.org/r/20240329072441.591471-2-samuel.holland@sifive.com
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Borislav Petkov (AMD) <bp@alien8.de>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nicolas Schier <nicolas@fjasle.eu>
Cc: Palmer Dabbelt <palmer@rivosinc.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: WANG Xuerui <git@xen0n.name>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
[ Backport from v6.10 ]
Signed-off-by: WangYuli <wangyuli@uniontech.com>
2025-07-24 23:36:39 +08:00
..
ABI x86/bugs: Add a Transient Scheduler Attacks mitigation 2025-07-14 10:42:19 +08:00
PCI
RCU doc: rcu: update printed dynticks counter bits 2024-12-10 20:44:27 +08:00
accel
accounting
admin-guide x86/bugs: Add a Transient Scheduler Attacks mitigation 2025-07-14 10:42:19 +08:00
arch x86/bugs: Rename MDS machinery to something more generic 2025-07-14 10:42:19 +08:00
block Documentation work keeps chugging along; stuff for 6.6 includes: 2023-08-30 20:05:42 -07:00
bpf bpf: Adjust free target to avoid global starvation of LRU map 2025-07-22 16:16:47 +08:00
cdrom scsi: sr: Fix unintentional arithmetic wraparound 2024-12-10 20:39:26 +08:00
core-api arch: add ARCH_HAS_KERNEL_FPU_SUPPORT 2025-07-24 23:36:39 +08:00
cpu-freq
crypto
dev-tools kbuild: Add Propeller configuration for kernel build 2025-05-29 20:38:29 +08:00
devicetree dt-bindings: serial: 8250: Make clocks and clock-frequency exclusive 2025-07-09 09:50:01 +08:00
doc-guide
driver-api serial: mctrl_gpio: split disable_ms into sync and no_sync APIs 2025-06-10 10:35:02 +08:00
fault-injection
fb
features membarrier: riscv: Provide core serializing command 2024-12-10 20:41:00 +08:00
filesystems fs_parser: update mount_api doc to match function signature 2024-12-10 20:44:58 +08:00
firmware-guide Documentation work keeps chugging along; stuff for 6.6 includes: 2023-08-30 20:05:42 -07:00
firmware_class
fpga
gpu drm: Introduce documentation for hotspot properties 2025-05-12 21:40:17 +08:00
hid
hwmon hwmon: (dell-smm) Increment the number of fans 2025-06-10 10:34:56 +08:00
i2c i2c: i801: Add support for Intel Panther Lake 2025-01-13 11:06:44 +08:00
iio
images
infiniband
input
isdn
kbuild kbuild: doc: Update default INSTALL_MOD_DIR from extra to updates 2024-12-10 20:38:53 +08:00
kernel-hacking
leds
litmus-tests
livepatch
locking kcsan, seqlock: Support seqcount_latch_t 2024-12-10 20:44:28 +08:00
maintainer Documentation work keeps chugging along; stuff for 6.6 includes: 2023-08-30 20:05:42 -07:00
mhi
misc-devices
mm mm/page_table_check: support userfault wr-protect entries 2024-12-10 20:40:35 +08:00
netlabel
netlink netlink: specs: rt-link: adjust mctp attribute naming 2025-05-09 18:47:32 +08:00
networking docs: tproxy: fix formatting for nft code block 2025-06-19 17:43:15 +08:00
nvdimm
nvme
pcmcia
peci
power Documentation: PM: Clarify pm_runtime_resume_and_get() return value 2024-12-23 21:10:05 +08:00
powerpc docs: kernel_feat.py: fix potential command injection 2024-01-31 16:18:46 -08:00
process rust: upgrade to Rust 1.73.0 2024-02-16 19:10:43 +01:00
riscv docs: kernel_feat.py: fix potential command injection 2024-01-31 16:18:46 -08:00
rust docs: rust: update Rust docs output path 2023-10-19 16:39:03 +02:00
scheduler sched/fair: Remove SCHED_FEAT(UTIL_EST_FASTUP, true) 2025-02-06 16:10:37 +08:00
scsi SCSI: hisi_raid: support SPxxx serial RAID/HBA controllers 2025-05-30 11:46:17 +08:00
security
sound ASoC: doc: Fix undefined SND_SOC_DAPM_NOPM argument 2024-02-05 20:14:26 +00:00
sphinx docs: kernel_include.py: Cope with docutils 0.21 2024-12-10 20:20:04 +08:00
sphinx-static
spi
staging xz: remove XZ_EXTERN and extern from functions 2025-01-18 13:07:45 +08:00
target
timers sched/isolation: Prevent boot crash when the boot CPU is nohz_full 2025-03-23 19:26:40 +08:00
tools rtla: fix a example in rtla-timerlat-hist.rst 2023-09-22 14:44:04 +02:00
trace Documentation: probes: Add a new ret_ip callback parameter 2023-10-17 10:21:45 +09:00
translations LoongArch: Add AVEC irqchip support 2025-02-18 12:00:10 +08:00
usb USB / Thunderbolt / PHY driver update for 6.6-rc1 2023-09-01 09:23:34 -07:00
userspace-api docs: ntsync: Add documentation for the ntsync uAPI. 2025-06-05 18:22:26 +08:00
virt Documentation: KVM: fix warning in "make htmldocs" 2024-12-10 20:42:14 +08:00
w1
watchdog
wmi Documentation work keeps chugging along; stuff for 6.6 includes: 2023-08-30 20:05:42 -07:00
.gitignore
Changes
CodingStyle
Kconfig
Makefile
SubmittingPatches
atomic_bitops.txt
atomic_t.txt
conf.py docs: Restore "smart quotes" for quotes 2024-04-03 15:28:22 +02:00
docutils.conf
dontdiff
index.rst
memory-barriers.txt
subsystem-apis.rst