/* cpuidle_add_sysfs - creates a sysfs instance for the target device @sysdev: the target device  */
int cpuidle_add_sysfs(struct sys_device *sysdev)
/* cpuidle_add_sysfs - creates a sysfs instance for the target device @sysdev: the target device  */
int cpuidle_add_sysfs(struct sys_device *sysdev)
{
	int cpu = sysdev->id;
	struct cpuidle_device *dev;
	int error;
	dev = per_cpu(cpuidle_devices, cpu);
	error = kobject_init_and_add(&dev->kobj, &ktype_cpuidle, &sysdev->kobj,
				     "cpuidle");
	if (!error)
		kobject_uevent(&dev->kobj, KOBJ_ADD);
	return error;
}