diff options
| author | Davidlohr Bueso <davidlohr.bueso@hp.com> | 2013-04-30 14:46:09 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2013-06-28 08:10:57 -0400 |
| commit | d2e08473f2488d53a71c2f53455f934ec6c44c53 (patch) | |
| tree | d2dc3d78776120b9012fe8f5045fdceec8d2d8ed /kernel | |
| parent | ccc414f83914178c7ab04ac4d4f0331fe4c37231 (diff) | |
softirq: Use _RET_IP_
Use the already defined macro to pass the function return address.
Signed-off-by: Davidlohr Bueso <davidlohr.bueso@hp.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/r/1367347569.1784.3.camel@buesod1.americas.hpqcorp.net
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/softirq.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/kernel/softirq.c b/kernel/softirq.c index b5197dcb0dad..a5f88362589b 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c | |||
| @@ -127,8 +127,7 @@ static inline void __local_bh_disable(unsigned long ip, unsigned int cnt) | |||
| 127 | 127 | ||
| 128 | void local_bh_disable(void) | 128 | void local_bh_disable(void) |
| 129 | { | 129 | { |
| 130 | __local_bh_disable((unsigned long)__builtin_return_address(0), | 130 | __local_bh_disable(_RET_IP_, SOFTIRQ_DISABLE_OFFSET); |
| 131 | SOFTIRQ_DISABLE_OFFSET); | ||
| 132 | } | 131 | } |
| 133 | 132 | ||
| 134 | EXPORT_SYMBOL(local_bh_disable); | 133 | EXPORT_SYMBOL(local_bh_disable); |
| @@ -139,7 +138,7 @@ static void __local_bh_enable(unsigned int cnt) | |||
| 139 | WARN_ON_ONCE(!irqs_disabled()); | 138 | WARN_ON_ONCE(!irqs_disabled()); |
| 140 | 139 | ||
| 141 | if (softirq_count() == cnt) | 140 | if (softirq_count() == cnt) |
| 142 | trace_softirqs_on((unsigned long)__builtin_return_address(0)); | 141 | trace_softirqs_on(_RET_IP_); |
| 143 | sub_preempt_count(cnt); | 142 | sub_preempt_count(cnt); |
| 144 | } | 143 | } |
| 145 | 144 | ||
| @@ -184,7 +183,7 @@ static inline void _local_bh_enable_ip(unsigned long ip) | |||
| 184 | 183 | ||
| 185 | void local_bh_enable(void) | 184 | void local_bh_enable(void) |
| 186 | { | 185 | { |
| 187 | _local_bh_enable_ip((unsigned long)__builtin_return_address(0)); | 186 | _local_bh_enable_ip(_RET_IP_); |
| 188 | } | 187 | } |
| 189 | EXPORT_SYMBOL(local_bh_enable); | 188 | EXPORT_SYMBOL(local_bh_enable); |
| 190 | 189 | ||
| @@ -223,8 +222,7 @@ asmlinkage void __do_softirq(void) | |||
| 223 | pending = local_softirq_pending(); | 222 | pending = local_softirq_pending(); |
| 224 | account_irq_enter_time(current); | 223 | account_irq_enter_time(current); |
| 225 | 224 | ||
| 226 | __local_bh_disable((unsigned long)__builtin_return_address(0), | 225 | __local_bh_disable(_RET_IP_, SOFTIRQ_OFFSET); |
| 227 | SOFTIRQ_OFFSET); | ||
| 228 | lockdep_softirq_enter(); | 226 | lockdep_softirq_enter(); |
| 229 | 227 | ||
| 230 | cpu = smp_processor_id(); | 228 | cpu = smp_processor_id(); |
