Bug 1283832 - when call local_irq_disable(); to block local cpu from all hard irq, it goes wrong!
when call local_irq_disable(); to block local cpu from all hard irq, it goes ...
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: realtime-kernel (Show other bugs)
x86_64 Linux
unspecified Severity high
: ---
: ---
Assigned To: Red Hat Real Time Maintenance
MRG Quality Engineering
Depends On:
  Show dependency treegraph
Reported: 2015-11-19 23:08 EST by lingfei
Modified: 2015-11-20 10:05 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-11-20 10:05:55 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
3.10.0-229.rt56.161.el6rt.x86_64/include/asm-generic/irqflags.h (1.47 KB, text/plain)
2015-11-19 23:08 EST, lingfei
no flags Details

  None (edit)
Description lingfei 2015-11-19 23:08:50 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 

How reproducible:

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;

Actual results:
3.10.0-229.rt56.161.el6rt.x86_64/include/asm-generic/irqflags.h:46: undefined reference to `arch_local_irq_restore

Expected results:
with no error; 

Additional info:
It seems I just find the function declared but definited in the  include/asm-generic/irqflags.h
Comment 1 Clark Williams 2015-11-20 10:05:55 EST
the include file linux/irqflags.h is for use by kernel code only.

Application programs cannot disable interrupts.

Note You need to log in before you can comment on or make changes to this bug.