kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: riel@surriel.com (Rik van Riel)
To: kernelnewbies@lists.kernelnewbies.org
Subject: In SMP system, is there any api to disable IRQ for all CPUs?
Date: Thu, 01 Oct 2015 22:01:24 -0400	[thread overview]
Message-ID: <560DE574.9090203@surriel.com> (raw)
In-Reply-To: <CANudz+u2euW1WN=jaUhM0n01sVc6P_8t+mzRjSgmDM5cTiYubw@mail.gmail.com>

On 10/01/2015 11:49 AM, loody wrote:
> hi all:
> is there any kernel API can let IRQ disable for all CPU in SMP system
> for a while?
> I just need it for a experiment on my module.
> 
> such as:
> xxxx      --> disable SMP all cpu IRQ
>   OOO   ---> no interrupt happen
>   OOO   ---> no interrupt happen
> zzzz      ---> enable SMP all cou IRQ

Look at the code in kernel/stop_machine.c

-- 
All rights reversed.

      reply	other threads:[~2015-10-02  2:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01 15:49 In SMP system, is there any api to disable IRQ for all CPUs? loody
2015-10-02  2:01 ` Rik van Riel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=560DE574.9090203@surriel.com \
    --to=riel@surriel.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).