Searched refs:phdev (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/thermal/
H A Dx86_pkg_temp_thermal.c321 struct phy_dev_entry *phdev = pkg_temp_thermal_get_phy_entry(cpu); pkg_temp_thermal_threshold_work_fn() local
325 if (!phdev) pkg_temp_thermal_threshold_work_fn()
351 thermal_zone_device_update(phdev->tzone); pkg_temp_thermal_threshold_work_fn()
481 struct phy_dev_entry *phdev = pkg_temp_thermal_device_remove() local
484 if (!phdev) pkg_temp_thermal_device_remove()
489 if (phdev->first_cpu == cpu) { pkg_temp_thermal_device_remove()
490 phdev->first_cpu = find_siblings_cpu(cpu); pkg_temp_thermal_device_remove()
492 phdev->first_cpu); pkg_temp_thermal_device_remove()
500 --phdev->ref_cnt; pkg_temp_thermal_device_remove()
502 phys_proc_id, cpu, phdev->ref_cnt); pkg_temp_thermal_device_remove()
503 if (!phdev->ref_cnt) pkg_temp_thermal_device_remove()
504 list_for_each_entry_safe(phdev, n, &phy_dev_list, list) { pkg_temp_thermal_device_remove()
505 if (phdev->phys_proc_id == phys_proc_id) { pkg_temp_thermal_device_remove()
506 thermal_zone_device_unregister(phdev->tzone); pkg_temp_thermal_device_remove()
507 list_del(&phdev->list); pkg_temp_thermal_device_remove()
508 kfree(phdev); pkg_temp_thermal_device_remove()
520 struct phy_dev_entry *phdev = pkg_temp_thermal_get_phy_entry(cpu); get_core_online() local
523 if (!phdev) { get_core_online()
531 ++phdev->ref_cnt; get_core_online()
533 cpu, phdev->ref_cnt); get_core_online()
617 struct phy_dev_entry *phdev, *n; pkg_temp_thermal_exit() local
623 list_for_each_entry_safe(phdev, n, &phy_dev_list, list) { pkg_temp_thermal_exit()
625 wrmsr_on_cpu(phdev->first_cpu, pkg_temp_thermal_exit()
627 phdev->start_pkg_therm_low, pkg_temp_thermal_exit()
628 phdev->start_pkg_therm_high); pkg_temp_thermal_exit()
629 thermal_zone_device_unregister(phdev->tzone); pkg_temp_thermal_exit()
630 list_del(&phdev->list); pkg_temp_thermal_exit()
631 kfree(phdev); pkg_temp_thermal_exit()

Completed in 85 milliseconds