diff options
Diffstat (limited to 'arch/arc/kernel')
-rw-r--r-- | arch/arc/kernel/entry-compact.S | 18 | ||||
-rw-r--r-- | arch/arc/kernel/intc-compact.c | 6 | ||||
-rw-r--r-- | arch/arc/kernel/perf_event.c | 2 | ||||
-rw-r--r-- | arch/arc/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/arc/kernel/signal.c | 2 | ||||
-rw-r--r-- | arch/arc/kernel/troubleshoot.c | 2 |
6 files changed, 8 insertions, 24 deletions
diff --git a/arch/arc/kernel/entry-compact.S b/arch/arc/kernel/entry-compact.S index 0cb0abaa0479..98812c1248df 100644 --- a/arch/arc/kernel/entry-compact.S +++ b/arch/arc/kernel/entry-compact.S | |||
@@ -91,27 +91,13 @@ VECTOR mem_service ; 0x8, Mem exception (0x1) | |||
91 | VECTOR instr_service ; 0x10, Instrn Error (0x2) | 91 | VECTOR instr_service ; 0x10, Instrn Error (0x2) |
92 | 92 | ||
93 | ; ******************** Device ISRs ********************** | 93 | ; ******************** Device ISRs ********************** |
94 | #ifdef CONFIG_ARC_IRQ3_LV2 | 94 | #ifdef CONFIG_ARC_COMPACT_IRQ_LEVELS |
95 | VECTOR handle_interrupt_level2 | ||
96 | #else | ||
97 | VECTOR handle_interrupt_level1 | ||
98 | #endif | ||
99 | |||
100 | VECTOR handle_interrupt_level1 | ||
101 | |||
102 | #ifdef CONFIG_ARC_IRQ5_LV2 | ||
103 | VECTOR handle_interrupt_level2 | ||
104 | #else | ||
105 | VECTOR handle_interrupt_level1 | ||
106 | #endif | ||
107 | |||
108 | #ifdef CONFIG_ARC_IRQ6_LV2 | ||
109 | VECTOR handle_interrupt_level2 | 95 | VECTOR handle_interrupt_level2 |
110 | #else | 96 | #else |
111 | VECTOR handle_interrupt_level1 | 97 | VECTOR handle_interrupt_level1 |
112 | #endif | 98 | #endif |
113 | 99 | ||
114 | .rept 25 | 100 | .rept 28 |
115 | VECTOR handle_interrupt_level1 ; Other devices | 101 | VECTOR handle_interrupt_level1 ; Other devices |
116 | .endr | 102 | .endr |
117 | 103 | ||
diff --git a/arch/arc/kernel/intc-compact.c b/arch/arc/kernel/intc-compact.c index c5cceca36118..ce9deb953ca9 100644 --- a/arch/arc/kernel/intc-compact.c +++ b/arch/arc/kernel/intc-compact.c | |||
@@ -28,10 +28,8 @@ void arc_init_IRQ(void) | |||
28 | { | 28 | { |
29 | int level_mask = 0; | 29 | int level_mask = 0; |
30 | 30 | ||
31 | /* setup any high priority Interrupts (Level2 in ARCompact jargon) */ | 31 | /* Is timer high priority Interrupt (Level2 in ARCompact jargon) */ |
32 | level_mask |= IS_ENABLED(CONFIG_ARC_IRQ3_LV2) << 3; | 32 | level_mask |= IS_ENABLED(CONFIG_ARC_COMPACT_IRQ_LEVELS) << TIMER0_IRQ; |
33 | level_mask |= IS_ENABLED(CONFIG_ARC_IRQ5_LV2) << 5; | ||
34 | level_mask |= IS_ENABLED(CONFIG_ARC_IRQ6_LV2) << 6; | ||
35 | 33 | ||
36 | /* | 34 | /* |
37 | * Write to register, even if no LV2 IRQs configured to reset it | 35 | * Write to register, even if no LV2 IRQs configured to reset it |
diff --git a/arch/arc/kernel/perf_event.c b/arch/arc/kernel/perf_event.c index 6fd48021324b..08f03d9b5b3e 100644 --- a/arch/arc/kernel/perf_event.c +++ b/arch/arc/kernel/perf_event.c | |||
@@ -108,7 +108,7 @@ static void arc_perf_event_update(struct perf_event *event, | |||
108 | int64_t delta = new_raw_count - prev_raw_count; | 108 | int64_t delta = new_raw_count - prev_raw_count; |
109 | 109 | ||
110 | /* | 110 | /* |
111 | * We don't afaraid of hwc->prev_count changing beneath our feet | 111 | * We aren't afraid of hwc->prev_count changing beneath our feet |
112 | * because there's no way for us to re-enter this function anytime. | 112 | * because there's no way for us to re-enter this function anytime. |
113 | */ | 113 | */ |
114 | local64_set(&hwc->prev_count, new_raw_count); | 114 | local64_set(&hwc->prev_count, new_raw_count); |
diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index f63b8bfefb0c..2ee7a4d758a8 100644 --- a/arch/arc/kernel/setup.c +++ b/arch/arc/kernel/setup.c | |||
@@ -392,7 +392,7 @@ void __init setup_arch(char **cmdline_p) | |||
392 | /* | 392 | /* |
393 | * If we are here, it is established that @uboot_arg didn't | 393 | * If we are here, it is established that @uboot_arg didn't |
394 | * point to DT blob. Instead if u-boot says it is cmdline, | 394 | * point to DT blob. Instead if u-boot says it is cmdline, |
395 | * Appent to embedded DT cmdline. | 395 | * append to embedded DT cmdline. |
396 | * setup_machine_fdt() would have populated @boot_command_line | 396 | * setup_machine_fdt() would have populated @boot_command_line |
397 | */ | 397 | */ |
398 | if (uboot_tag == 1) { | 398 | if (uboot_tag == 1) { |
diff --git a/arch/arc/kernel/signal.c b/arch/arc/kernel/signal.c index 004b7f0bc76c..6cb3736b6b83 100644 --- a/arch/arc/kernel/signal.c +++ b/arch/arc/kernel/signal.c | |||
@@ -34,7 +34,7 @@ | |||
34 | * -ViXS were still seeing crashes when using insmod to load drivers. | 34 | * -ViXS were still seeing crashes when using insmod to load drivers. |
35 | * It turned out that the code to change Execute permssions for TLB entries | 35 | * It turned out that the code to change Execute permssions for TLB entries |
36 | * of user was not guarded for interrupts (mod_tlb_permission) | 36 | * of user was not guarded for interrupts (mod_tlb_permission) |
37 | * This was cauing TLB entries to be overwritten on unrelated indexes | 37 | * This was causing TLB entries to be overwritten on unrelated indexes |
38 | * | 38 | * |
39 | * Vineetg: July 15th 2008: Bug #94183 | 39 | * Vineetg: July 15th 2008: Bug #94183 |
40 | * -Exception happens in Delay slot of a JMP, and before user space resumes, | 40 | * -Exception happens in Delay slot of a JMP, and before user space resumes, |
diff --git a/arch/arc/kernel/troubleshoot.c b/arch/arc/kernel/troubleshoot.c index a6f91e88ce36..934150e7ac48 100644 --- a/arch/arc/kernel/troubleshoot.c +++ b/arch/arc/kernel/troubleshoot.c | |||
@@ -276,7 +276,7 @@ static int tlb_stats_open(struct inode *inode, struct file *file) | |||
276 | return 0; | 276 | return 0; |
277 | } | 277 | } |
278 | 278 | ||
279 | /* called on user read(): display the couters */ | 279 | /* called on user read(): display the counters */ |
280 | static ssize_t tlb_stats_output(struct file *file, /* file descriptor */ | 280 | static ssize_t tlb_stats_output(struct file *file, /* file descriptor */ |
281 | char __user *user_buf, /* user buffer */ | 281 | char __user *user_buf, /* user buffer */ |
282 | size_t len, /* length of buffer */ | 282 | size_t len, /* length of buffer */ |