Red Hat Bugzilla – Bug 1283832
when call local_irq_disable（）; to block local cpu from all hard irq, it goes wrong!
Last modified: 2015-11-20 10:05:55 EST
Created attachment 1096988 [details]
Description of problem:
Version-Release number of selected component (if applicable):
Kernel version ：Redhat-6.7 3.10.0-229.rt56.161.el6rt.x86_64
Programme a realtime programa,to shield a specific CPU from handling IRQs
Steps to Reproduce:
2.the main() funtion calls some thread functions.
2.call local_irq_disable（）; in a thread function.
3.compile it with icc;
3.10.0-229.rt56.161.el6rt.x86_64/include/asm-generic/irqflags.h:46: undefined reference to `arch_local_irq_restore
with no error;
It seems I just find the function declared but definited in the include/asm-generic/irqflags.h
the include file linux/irqflags.h is for use by kernel code only.
Application programs cannot disable interrupts.