Re: Enable/disable cpu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>
>
> drivers/base/core.c has this generic code for creating that file:
>
>         if (device_supports_offline(dev) && !dev->offline_disabled) {
>                 error = device_create_file(dev, &dev_attr_online);
>                 if (error)
>                         goto err_remove_dev_groups;
>         }
>
>
  Thank you, that makes perfect sense. Really helpful.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux