diff options
-rw-r--r-- | arch/powerpc/kernel/irq.c | 7 | ||||
-rw-r--r-- | arch/s390/kernel/irq.c | 8 | ||||
-rw-r--r-- | kernel/softirq.c | 4 |
3 files changed, 5 insertions, 14 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index 027728b95429..e3774f6b57cc 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c | |||
@@ -424,13 +424,8 @@ void do_softirq(void) | |||
424 | 424 | ||
425 | local_irq_save(flags); | 425 | local_irq_save(flags); |
426 | 426 | ||
427 | if (local_softirq_pending()) { | 427 | if (local_softirq_pending()) |
428 | account_system_vtime(current); | ||
429 | local_bh_disable(); | ||
430 | do_softirq_onstack(); | 428 | do_softirq_onstack(); |
431 | account_system_vtime(current); | ||
432 | _local_bh_enable(); | ||
433 | } | ||
434 | 429 | ||
435 | local_irq_restore(flags); | 430 | local_irq_restore(flags); |
436 | } | 431 | } |
diff --git a/arch/s390/kernel/irq.c b/arch/s390/kernel/irq.c index e347190d9aea..1eef50918615 100644 --- a/arch/s390/kernel/irq.c +++ b/arch/s390/kernel/irq.c | |||
@@ -69,10 +69,6 @@ asmlinkage void do_softirq(void) | |||
69 | 69 | ||
70 | local_irq_save(flags); | 70 | local_irq_save(flags); |
71 | 71 | ||
72 | account_system_vtime(current); | ||
73 | |||
74 | local_bh_disable(); | ||
75 | |||
76 | if (local_softirq_pending()) { | 72 | if (local_softirq_pending()) { |
77 | /* Get current stack pointer. */ | 73 | /* Get current stack pointer. */ |
78 | asm volatile("la %0,0(15)" : "=a" (old)); | 74 | asm volatile("la %0,0(15)" : "=a" (old)); |
@@ -95,10 +91,6 @@ asmlinkage void do_softirq(void) | |||
95 | __do_softirq(); | 91 | __do_softirq(); |
96 | } | 92 | } |
97 | 93 | ||
98 | account_system_vtime(current); | ||
99 | |||
100 | _local_bh_enable(); | ||
101 | |||
102 | local_irq_restore(flags); | 94 | local_irq_restore(flags); |
103 | } | 95 | } |
104 | 96 | ||
diff --git a/kernel/softirq.c b/kernel/softirq.c index 584609b6a66e..215541e26c1a 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c | |||
@@ -193,6 +193,8 @@ asmlinkage void __do_softirq(void) | |||
193 | int cpu; | 193 | int cpu; |
194 | 194 | ||
195 | pending = local_softirq_pending(); | 195 | pending = local_softirq_pending(); |
196 | account_system_vtime(current); | ||
197 | |||
196 | __local_bh_disable((unsigned long)__builtin_return_address(0)); | 198 | __local_bh_disable((unsigned long)__builtin_return_address(0)); |
197 | trace_softirq_enter(); | 199 | trace_softirq_enter(); |
198 | 200 | ||
@@ -224,6 +226,8 @@ restart: | |||
224 | wakeup_softirqd(); | 226 | wakeup_softirqd(); |
225 | 227 | ||
226 | trace_softirq_exit(); | 228 | trace_softirq_exit(); |
229 | |||
230 | account_system_vtime(current); | ||
227 | _local_bh_enable(); | 231 | _local_bh_enable(); |
228 | } | 232 | } |
229 | 233 | ||