Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/src/linux-headers-5.4.0-150/include/linux/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2014 Linaro Ltd. <ard.biesheuvel@linaro.org> */ #ifndef __LINUX_CPUFEATURE_H #define __LINUX_CPUFEATURE_H #ifdef CONFIG_GENERIC_CPU_AUTOPROBE #include <linux/init.h> #include <linux/mod_devicetable.h> #include <asm/cpufeature.h> /* * Macros imported from <asm/cpufeature.h>: * - cpu_feature(x) ordinal value of feature called 'x' * - cpu_have_feature(u32 n) whether feature #n is available * - MAX_CPU_FEATURES upper bound for feature ordinal values * Optional: * - CPU_FEATURE_TYPEFMT format string fragment for printing the cpu type * - CPU_FEATURE_TYPEVAL set of values matching the format string above */ #ifndef CPU_FEATURE_TYPEFMT #define CPU_FEATURE_TYPEFMT "%s" #endif #ifndef CPU_FEATURE_TYPEVAL #define CPU_FEATURE_TYPEVAL ELF_PLATFORM #endif /* * Use module_cpu_feature_match(feature, module_init_function) to * declare that * a) the module shall be probed upon discovery of CPU feature 'feature' * (typically at boot time using udev) * b) the module must not be loaded if CPU feature 'feature' is not present * (not even by manual insmod). * * For a list of legal values for 'feature', please consult the file * 'asm/cpufeature.h' of your favorite architecture. */ #define module_cpu_feature_match(x, __initfunc) \ static struct cpu_feature const __maybe_unused cpu_feature_match_ ## x[] = \ { { .feature = cpu_feature(x) }, { } }; \ MODULE_DEVICE_TABLE(cpu, cpu_feature_match_ ## x); \ \ static int __init cpu_feature_match_ ## x ## _init(void) \ { \ if (!cpu_have_feature(cpu_feature(x))) \ return -ENODEV; \ return __initfunc(); \ } \ module_init(cpu_feature_match_ ## x ## _init) #endif #endif