Skip to content

Commit a707709

Browse files
Christoph Hellwigtorvalds
authored andcommitted
FRV: Use asm/generic-hardirq.h
Use asm/generic-hardirq.h to build asm/hardirq.h and also remove the unused idle_timestamp field in irq_cpustat whilst we're at it. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d19110b commit a707709

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

arch/frv/include/asm/hardirq.h

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,15 @@
1212
#ifndef __ASM_HARDIRQ_H
1313
#define __ASM_HARDIRQ_H
1414

15-
#include <linux/threads.h>
16-
#include <linux/irq.h>
17-
18-
typedef struct {
19-
unsigned int __softirq_pending;
20-
unsigned long idle_timestamp;
21-
} ____cacheline_aligned irq_cpustat_t;
22-
23-
#include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
24-
25-
#ifdef CONFIG_SMP
26-
#error SMP not available on FR-V
27-
#endif /* CONFIG_SMP */
15+
#include <asm/atomic.h>
2816

2917
extern atomic_t irq_err_count;
3018
static inline void ack_bad_irq(int irq)
3119
{
3220
atomic_inc(&irq_err_count);
3321
}
22+
#define ack_bad_irq ack_bad_irq
23+
24+
#include <asm-generic/hardirq.h>
3425

3526
#endif

arch/frv/kernel/process.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,9 @@ void (*idle)(void) = core_sleep_idle;
8383
*/
8484
void cpu_idle(void)
8585
{
86-
int cpu = smp_processor_id();
87-
8886
/* endless idle loop with no priority at all */
8987
while (1) {
9088
while (!need_resched()) {
91-
irq_stat[cpu].idle_timestamp = jiffies;
92-
9389
check_pgt_cache();
9490

9591
if (!frv_dma_inprogress && idle)

0 commit comments

Comments
 (0)