Calling hibernate from workqueue

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

 



Hi,

I am using a arm based muticore platform.

I intend to call hibernate from a push button interrupt. I have
initialized a workqueue for calling hibernate() and have scheduled it
in the push button interrupt service routine. I have chosen workqueue
over tasklet for the reason:-
1. Workqueue gets called in process context whereas tasklet gets
called in deferred interrupt context and thus as hibernate is a long
process (which can sleep) , I found workqueue to be more suitable.

My query is that does the function added in workqueue get executed on
a  different core than from where it gets scheduled. In my case, it
would be a major issue as hibernate() is expected to get called from
core0 only.

If so, what is the possible remedy to suffice my need. I understand
that workqueue cannot be assigned to a particular core.

Please correct me if my understanding is incorrect.

Regards,
Ayan Kumar Halder

_______________________________________________
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