Reputation: 125
I am trying to disable irq calls from kernel while executing some application, i am calling local_irq_disable() before executing my application is that sufficient to disable the IRQ flags. Is any other way to disable the IRQ's please suggest me.
Upvotes: 1
Views: 1243
Reputation:
If you're using the CPU for non-kernel work, then the best approach would be to mark it offline (i.e. clear the corresponding bit in cpu_online_mask). Of course, you would have to make sure that there is no pending work that might block other CPUs in the system before you do that…
In other words, go all the way through offlining (hot unplug) without the very last step of actually stopping the CPU. Instead, let it do the special work. When you're done, follow the online steps (hot plug the CPU again).
Upvotes: 1