Home
last modified time | relevance | path

Searched refs:sys_dev (Results 1 – 5 of 5) sorted by relevance

/arch/x86/kernel/cpu/mcheck/
Dtherm_throt.c114 static __cpuinit int thermal_throttle_add_dev(struct sys_device *sys_dev) in thermal_throttle_add_dev() argument
116 return sysfs_create_group(&sys_dev->kobj, &thermal_throttle_attr_group); in thermal_throttle_add_dev()
119 static __cpuinit void thermal_throttle_remove_dev(struct sys_device *sys_dev) in thermal_throttle_remove_dev() argument
121 sysfs_remove_group(&sys_dev->kobj, &thermal_throttle_attr_group); in thermal_throttle_remove_dev()
133 struct sys_device *sys_dev; in thermal_throttle_cpu_callback() local
136 sys_dev = get_cpu_sysdev(cpu); in thermal_throttle_cpu_callback()
141 err = thermal_throttle_add_dev(sys_dev); in thermal_throttle_cpu_callback()
150 thermal_throttle_remove_dev(sys_dev); in thermal_throttle_cpu_callback()
/arch/ia64/kernel/
Derr_inject.c228 static int __cpuinit err_inject_add_dev(struct sys_device * sys_dev) in err_inject_add_dev() argument
230 return sysfs_create_group(&sys_dev->kobj, &err_inject_attr_group); in err_inject_add_dev()
233 static int __cpuinit err_inject_remove_dev(struct sys_device * sys_dev) in err_inject_remove_dev() argument
235 sysfs_remove_group(&sys_dev->kobj, &err_inject_attr_group); in err_inject_remove_dev()
242 struct sys_device *sys_dev; in err_inject_cpu_callback() local
244 sys_dev = get_cpu_sysdev(cpu); in err_inject_cpu_callback()
248 err_inject_add_dev(sys_dev); in err_inject_cpu_callback()
252 err_inject_remove_dev(sys_dev); in err_inject_cpu_callback()
286 struct sys_device *sys_dev; in err_inject_exit() local
292 sys_dev = get_cpu_sysdev(i); in err_inject_exit()
[all …]
Dtopology.c351 static int __cpuinit cache_add_dev(struct sys_device * sys_dev) in cache_add_dev() argument
353 unsigned int cpu = sys_dev->id; in cache_add_dev()
373 &cache_ktype_percpu_entry, &sys_dev->kobj, in cache_add_dev()
397 static int __cpuinit cache_remove_dev(struct sys_device * sys_dev) in cache_remove_dev() argument
399 unsigned int cpu = sys_dev->id; in cache_remove_dev()
425 struct sys_device *sys_dev; in cache_cpu_callback() local
427 sys_dev = get_cpu_sysdev(cpu); in cache_cpu_callback()
431 cache_add_dev(sys_dev); in cache_cpu_callback()
435 cache_remove_dev(sys_dev); in cache_cpu_callback()
451 struct sys_device *sys_dev = get_cpu_sysdev((unsigned int)i); in cache_sysfs_init() local
[all …]
/arch/x86/kernel/
Dmicrocode_core.c367 static int mc_sysdev_add(struct sys_device *sys_dev) in mc_sysdev_add() argument
369 int err, cpu = sys_dev->id; in mc_sysdev_add()
378 err = sysfs_create_group(&sys_dev->kobj, &mc_attr_group); in mc_sysdev_add()
386 static int mc_sysdev_remove(struct sys_device *sys_dev) in mc_sysdev_remove() argument
388 int cpu = sys_dev->id; in mc_sysdev_remove()
395 sysfs_remove_group(&sys_dev->kobj, &mc_attr_group); in mc_sysdev_remove()
421 struct sys_device *sys_dev; in mc_cpu_callback() local
423 sys_dev = get_cpu_sysdev(cpu); in mc_cpu_callback()
431 if (sysfs_create_group(&sys_dev->kobj, &mc_attr_group)) in mc_cpu_callback()
438 sysfs_remove_group(&sys_dev->kobj, &mc_attr_group); in mc_cpu_callback()
/arch/x86/kernel/cpu/
Dintel_cacheinfo.c884 static int __cpuinit cache_add_dev(struct sys_device * sys_dev) in cache_add_dev() argument
886 unsigned int cpu = sys_dev->id; in cache_add_dev()
897 &sys_dev->kobj, "%s", "cache"); in cache_add_dev()
927 static void __cpuinit cache_remove_dev(struct sys_device * sys_dev) in cache_remove_dev() argument
929 unsigned int cpu = sys_dev->id; in cache_remove_dev()
948 struct sys_device *sys_dev; in cacheinfo_cpu_callback() local
950 sys_dev = get_cpu_sysdev(cpu); in cacheinfo_cpu_callback()
954 cache_add_dev(sys_dev); in cacheinfo_cpu_callback()
958 cache_remove_dev(sys_dev); in cacheinfo_cpu_callback()
978 struct sys_device *sys_dev = get_cpu_sysdev(i); in cache_sysfs_init() local
[all …]