kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* How to diasble interrupt of current core in multicore cpu
@ 2014-05-30  8:12 J.Hwan Kim
  2014-05-30  8:25 ` Pranay Srivastava
  0 siblings, 1 reply; 4+ messages in thread
From: J.Hwan Kim @ 2014-05-30  8:12 UTC (permalink / raw)
  To: kernelnewbies

Hi, everyone

How to disable interrupt for current core in multicore CPU?

Thanks in advance
Kim.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* How to diasble interrupt of current core in multicore cpu
  2014-05-30  8:12 How to diasble interrupt of current core in multicore cpu J.Hwan Kim
@ 2014-05-30  8:25 ` Pranay Srivastava
  2014-05-30  8:29   ` enjoy mindful
  2014-06-05 19:05   ` Yi Li
  0 siblings, 2 replies; 4+ messages in thread
From: Pranay Srivastava @ 2014-05-30  8:25 UTC (permalink / raw)
  To: kernelnewbies

are you looking for

local_irq_disable?

On Fri, May 30, 2014 at 1:42 PM, J.Hwan Kim <kernel.frog.007@gmail.com> wrote:
> Hi, everyone
>
> How to disable interrupt for current core in multicore CPU?
>
> Thanks in advance
> Kim.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



-- 
        ---P.K.S

^ permalink raw reply	[flat|nested] 4+ messages in thread

* How to diasble interrupt of current core in multicore cpu
  2014-05-30  8:25 ` Pranay Srivastava
@ 2014-05-30  8:29   ` enjoy mindful
  2014-06-05 19:05   ` Yi Li
  1 sibling, 0 replies; 4+ messages in thread
From: enjoy mindful @ 2014-05-30  8:29 UTC (permalink / raw)
  To: kernelnewbies

linux-3.12.6/Documentation/IRQ-affinity.txt

On Fri, May 30, 2014 at 4:25 PM, Pranay Srivastava <pranjas@gmail.com> wrote:
> are you looking for
>
> local_irq_disable?
>
> On Fri, May 30, 2014 at 1:42 PM, J.Hwan Kim <kernel.frog.007@gmail.com> wrote:
>> Hi, everyone
>>
>> How to disable interrupt for current core in multicore CPU?
>>
>> Thanks in advance
>> Kim.
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
>
> --
>         ---P.K.S
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 4+ messages in thread

* How to diasble interrupt of current core in multicore cpu
  2014-05-30  8:25 ` Pranay Srivastava
  2014-05-30  8:29   ` enjoy mindful
@ 2014-06-05 19:05   ` Yi Li
  1 sibling, 0 replies; 4+ messages in thread
From: Yi Li @ 2014-06-05 19:05 UTC (permalink / raw)
  To: kernelnewbies



-----Original Message-----
From: kernelnewbies-bounces@kernelnewbies.org [mailto:kernelnewbies-bounces at kernelnewbies.org] On Behalf Of Pranay Srivastava
Sent: Friday, May 30, 2014 4:26 PM
To: J.Hwan Kim
Cc: kernelnewbies
Subject: Re: How to diasble interrupt of current core in multicore cpu

are you looking for

local_irq_disable?

On Fri, May 30, 2014 at 1:42 PM, J.Hwan Kim <kernel.frog.007@gmail.com> wrote:
> Hi, everyone
>
> How to disable interrupt for current core in multicore CPU?
>
> Thanks in advance
> Kim.
>
local_irq_save/restore would be more suitable. you can use them without considering
is interrupt enabled now. your code may looks like this:
local_irq_save()
/*your code comes here with interrupt disabled*/
local_irq_restore()
in this way, if interrupt is in state A (may be enabled or disabled), before you call local_irq_save(), then after you call local_irq_restore,
the interrupt will still be in state A. harmless to other code.
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



-- 
        ---P.K.S

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-05 19:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-30  8:12 How to diasble interrupt of current core in multicore cpu J.Hwan Kim
2014-05-30  8:25 ` Pranay Srivastava
2014-05-30  8:29   ` enjoy mindful
2014-06-05 19:05   ` Yi Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).