Searched refs:cpu_dev (Results 1 – 3 of 3) sorted by relevance
398 struct device *cpu_dev = get_cpu_device((unsigned long)dev->cpu); in __cpuidle_register_device() local410 ret = cpuidle_add_sysfs(cpu_dev); in __cpuidle_register_device()422 cpuidle_remove_sysfs(cpu_dev); in __cpuidle_register_device()463 struct device *cpu_dev = get_cpu_device((unsigned long)dev->cpu); in cpuidle_unregister_device() local473 cpuidle_remove_sysfs(cpu_dev); in cpuidle_unregister_device()
408 int cpuidle_add_sysfs(struct device *cpu_dev) in cpuidle_add_sysfs() argument410 int cpu = cpu_dev->id; in cpuidle_add_sysfs()415 error = kobject_init_and_add(&dev->kobj, &ktype_cpuidle, &cpu_dev->kobj, in cpuidle_add_sysfs()426 void cpuidle_remove_sysfs(struct device *cpu_dev) in cpuidle_remove_sysfs() argument428 int cpu = cpu_dev->id; in cpuidle_remove_sysfs()
772 struct device *cpu_dev; in cpufreq_add_dev_symlink() local781 cpu_dev = get_cpu_device(j); in cpufreq_add_dev_symlink()782 ret = sysfs_create_link(&cpu_dev->kobj, &policy->kobj, in cpufreq_add_dev_symlink()1018 struct device *cpu_dev; in __cpufreq_remove_dev() local1082 cpu_dev = get_cpu_device(j); in __cpufreq_remove_dev()1083 kobj = &cpu_dev->kobj; in __cpufreq_remove_dev()