<p><br>
On Jun 9, 2014 8:47 PM, "AYAN KUMAR HALDER" <<a href="mailto:ayankumarh@gmail.com">ayankumarh@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I am using a arm based muticore platform.<br>
><br>
> I intend to call hibernate from a push button interrupt. I have<br>
> initialized a workqueue for calling hibernate() and have scheduled it<br>
> in the push button interrupt service routine. I have chosen workqueue<br>
> over tasklet for the reason:-<br>
> 1. Workqueue gets called in process context whereas tasklet gets<br>
> called in deferred interrupt context and thus as hibernate is a long<br>
> process (which can sleep) , I found workqueue to be more suitable.<br>
><br>
> My query is that does the function added in workqueue get executed on<br>
> a different core than from where it gets scheduled. In my case, it<br>
> would be a major issue as hibernate() is expected to get called from<br>
> core0 only.<br>
><br>
have you tried </p>
<p>queue_work_on?<br></p>
<p>> If so, what is the possible remedy to suffice my need. I understand<br>
> that workqueue cannot be assigned to a particular core.<br>
><br>
> Please correct me if my understanding is incorrect.<br>
><br>
> Regards,<br>
> Ayan Kumar Halder<br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</p>