Doubt regarding clk_prepare / clk_enable

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

 



hi ,

I have a doubt about the clk_prepare vs clk_enable.
Currently I see all the users of clk_enable from process context in my platform.

There is a bit to write to enable the clocks since clk_enable cannot  sleep
spinlocks are used.

I was thinking since  there is no users can the spinlocks be replaced with
mutex and the function of enabled  be assigned to prepare instead.

However I see similar implementations do option1.

Can clk_prepare also enable the clocks also.

With Regards,
Shubhrajyoti

_______________________________________________
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