Bug 1283835 - when call local_irq_disable(); to block local cpu from all hard irq, it goes wrong!
Summary: when call local_irq_disable(); to block local cpu from all hard irq, it goes ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: realtime-kernel
Version: 3.1
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Red Hat Real Time Maintenance
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-20 04:25 UTC by lingfei
Modified: 2015-11-20 15:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-20 15:04:34 UTC
Target Upstream Version:
Embargoed:
546755767: needinfo+


Attachments (Terms of Use)

Description lingfei 2015-11-20 04:25:43 UTC
Description of problem:
when shielding a specific CPU from handling with IRQs in  real time program

Version-Release number of selected component (if applicable):
Redhat-6.7 3.10.0-229.rt56.161.el6rt.x86_64

How reproducible:
Write a time time program 

Steps to Reproduce:
1.#include<linux/irqflags.h>
2.Call some thread functions in main();.
3.Set the thread affinition on a specific cpu.  
3.Call local_irq_disable(); to shield local cpu from dealing with hard irq in  
a thread function.
4.Compile it.
Actual results:
**/3.10.0-229.rt56.161.el6rt.x86_64/include/asm-generic/irqflags.h:46: undefined reference to `arch_local_irq_restore(unsigned long)'

Expected results:
with no error;

Additional info:
I just the arch_local_irq_restore(unsigned long); declared but definited in the file ,where it goes?

Comment 1 Clark Williams 2015-11-20 15:04:34 UTC
The irqflags header file is for kernel use only; it is not for use by an application program. 

Application programs cannot disable interrupts.


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