/proc/acpi/wakeup is deprecated but it has to exist because we haven't a sysfs interface to replace it yet, this patch converts /proc/acpi/wakeup to sysfs interface, under every acpi device sysfs node, a user can see a directory "wakeup" if the acpi device can support wakeup, there a...
+ sysfs_create_group(acpi_kobj, &interrupt_stats_attr_group); + return; + +fail: + delete_gpe_attr_array(); + return; +} + +static void __exit interrupt_stats_exit(void) +{ + sysfs_remove_group(acpi_kobj, &interrupt_stats_attr_group); + + delete_gpe_attr_array(); + + retur...
(1)首先判断是否为热插拔服务且热插拔桥是否存在二级总线(桥下是否链接设备)。调用pcie_init函数初始化struct controller *ctrl: struct controller *ctrl结构申请内存,读取桥设备的Slot Capabilities寄存器值,根据hotplug_user_indicators判断是否存在按钮指示灯以及电源指示灯。并初始化cap相应位,判断是否为intel的雷电接口...
void*hcpu){unsignedintcpu = (unsignedlong)hcpu;structacpi_processor*pr=per_cpu(processors,cpu);if(action == CPU_ONLINE && pr) {if(pr->flags.need_hotplug_init) {structcpuidle_driver*idle_driver=cpuidle_get_driver();printk(KERN_INFO"Will online and init hotplugged ""CPU: %d\n", pr-...
lyn 创建于 2024-06-04 15:48 多次reboot(不下电),偶现启动挂死,报acpi申请内存oom 内核版本: 5.10.0-153.12.0.92.oe2203sp2.aarch64 1.发现有报acpi相关的申请内存oom 2.Acpi-State 占用内存异常 麻烦帮忙分析下,日志如下: [ 26.270963][ T1] ACPI: Thermal Zone [TZ01] (39 C) [ 26.276113][ T1...
(SMP)机制; Linux内核可以抢占,允许在内核运行的任务优先执行; Linux内核不区分线程和其他一般的进程...,对内核来说,所有进程都一样,只不过有的共享资源; Linux提供具有设备类的面向对象的设备模型、热插拔事件,以及用户空间的设备文件系统(sysfs); Linux忽略了一些拙劣的Unix特性,并且很好的体现了自由的特性...;...
Add functionality to read LPIT table, which provides: - Sysfs interface to read residency counters via /sys/devices/system/cpu/cpuidle/low_power_idle_cpu_residency_us /sys/devices/system/cpu/cpuidle/low_power_idle_system_residency_us Here the count "low_power_idle_cpu_residency_us" shows th...
res = sysfs_create_link(resource->holders_dir, &obj->dev.kobj, kobject_name(&obj->dev.kobj));if(res) { put_device(&obj->dev); resource->domain_devices[i] =NULL; } } res =0;gotoend; exit_free: kfree(resource->domain_devices); ...
ffffffff81e5cb98 t __initcall_pci_sysfs_init7 ffffffff81e5cc08 t __initcall_pci_mmcfg_late_insert_resources7 2. pci hotplug流程 1) 通过acpi_install_notify_handler向acpi模块注册消息处理函数 消息处理函数为handle_hotplug_event handle_hotplug_event-->hotplug_event_work-->hotplug_event-->acpiphp...
.sysfs_ops = &kobj_sysfs_ops, .default_groups = cppc_groups, };static int check_pcc_chan(int pcc_ss_id, bool chk_err_bit) { int ret, status; struct cppc_pcc_data *pcc_ss_data = pcc_data[pcc_ss_id]; struct acpi_pcct_shared_memory __iomem *generic_comm_base = ...