File manager - Edit - /home/newsbmcs.com/public_html/static/img/logo/cpuidle.h.tar
Back
usr/src/linux-headers-5.15.0-133/arch/arm64/include/asm/cpuidle.h 0000644 00000002462 15030566340 0017621 0 ustar 00 /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CPUIDLE_H #define __ASM_CPUIDLE_H #include <asm/proc-fns.h> #ifdef CONFIG_CPU_IDLE extern int arm_cpuidle_init(unsigned int cpu); extern int arm_cpuidle_suspend(int index); #else static inline int arm_cpuidle_init(unsigned int cpu) { return -EOPNOTSUPP; } static inline int arm_cpuidle_suspend(int index) { return -EOPNOTSUPP; } #endif #ifdef CONFIG_ARM64_PSEUDO_NMI #include <asm/arch_gicv3.h> struct arm_cpuidle_irq_context { unsigned long pmr; unsigned long daif_bits; }; #define arm_cpuidle_save_irq_context(__c) \ do { \ struct arm_cpuidle_irq_context *c = __c; \ if (system_uses_irq_prio_masking()) { \ c->daif_bits = read_sysreg(daif); \ write_sysreg(c->daif_bits | PSR_I_BIT | PSR_F_BIT, \ daif); \ c->pmr = gic_read_pmr(); \ gic_write_pmr(GIC_PRIO_IRQON | GIC_PRIO_PSR_I_SET); \ } \ } while (0) #define arm_cpuidle_restore_irq_context(__c) \ do { \ struct arm_cpuidle_irq_context *c = __c; \ if (system_uses_irq_prio_masking()) { \ gic_write_pmr(c->pmr); \ write_sysreg(c->daif_bits, daif); \ } \ } while (0) #else struct arm_cpuidle_irq_context { }; #define arm_cpuidle_save_irq_context(c) (void)c #define arm_cpuidle_restore_irq_context(c) (void)c #endif #endif usr/src/linux-headers-5.15.0-142/arch/arm/include/asm/cpuidle.h 0000644 00000003134 15030614201 0017432 0 ustar 00 /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_ARM_CPUIDLE_H #define __ASM_ARM_CPUIDLE_H #include <asm/proc-fns.h> #ifdef CONFIG_CPU_IDLE extern int arm_cpuidle_simple_enter(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index); #define __cpuidle_method_section __used __section("__cpuidle_method_of_table") #else static inline int arm_cpuidle_simple_enter(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) { return -ENODEV; } #define __cpuidle_method_section __maybe_unused /* drop silently */ #endif /* Common ARM WFI state */ #define ARM_CPUIDLE_WFI_STATE_PWR(p) {\ .enter = arm_cpuidle_simple_enter,\ .exit_latency = 1,\ .target_residency = 1,\ .power_usage = p,\ .name = "WFI",\ .desc = "ARM WFI",\ } /* * in case power_specified == 1, give a default WFI power value needed * by some governors */ #define ARM_CPUIDLE_WFI_STATE ARM_CPUIDLE_WFI_STATE_PWR(UINT_MAX) struct device_node; struct cpuidle_ops { int (*suspend)(unsigned long arg); int (*init)(struct device_node *, int cpu); }; struct of_cpuidle_method { const char *method; const struct cpuidle_ops *ops; }; #define CPUIDLE_METHOD_OF_DECLARE(name, _method, _ops) \ static const struct of_cpuidle_method __cpuidle_method_of_table_##name \ __cpuidle_method_section = { .method = _method, .ops = _ops } extern int arm_cpuidle_suspend(int index); extern int arm_cpuidle_init(int cpu); struct arm_cpuidle_irq_context { }; #define arm_cpuidle_save_irq_context(c) (void)c #define arm_cpuidle_restore_irq_context(c) (void)c #endif usr/src/linux-headers-5.15.0-141/arch/arm/include/asm/cpuidle.h 0000644 00000003134 15030724237 0017444 0 ustar 00 /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_ARM_CPUIDLE_H #define __ASM_ARM_CPUIDLE_H #include <asm/proc-fns.h> #ifdef CONFIG_CPU_IDLE extern int arm_cpuidle_simple_enter(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index); #define __cpuidle_method_section __used __section("__cpuidle_method_of_table") #else static inline int arm_cpuidle_simple_enter(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) { return -ENODEV; } #define __cpuidle_method_section __maybe_unused /* drop silently */ #endif /* Common ARM WFI state */ #define ARM_CPUIDLE_WFI_STATE_PWR(p) {\ .enter = arm_cpuidle_simple_enter,\ .exit_latency = 1,\ .target_residency = 1,\ .power_usage = p,\ .name = "WFI",\ .desc = "ARM WFI",\ } /* * in case power_specified == 1, give a default WFI power value needed * by some governors */ #define ARM_CPUIDLE_WFI_STATE ARM_CPUIDLE_WFI_STATE_PWR(UINT_MAX) struct device_node; struct cpuidle_ops { int (*suspend)(unsigned long arg); int (*init)(struct device_node *, int cpu); }; struct of_cpuidle_method { const char *method; const struct cpuidle_ops *ops; }; #define CPUIDLE_METHOD_OF_DECLARE(name, _method, _ops) \ static const struct of_cpuidle_method __cpuidle_method_of_table_##name \ __cpuidle_method_section = { .method = _method, .ops = _ops } extern int arm_cpuidle_suspend(int index); extern int arm_cpuidle_init(int cpu); struct arm_cpuidle_irq_context { }; #define arm_cpuidle_save_irq_context(c) (void)c #define arm_cpuidle_restore_irq_context(c) (void)c #endif
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings