Skip to content

Commit 76c057c

Browse files
committed
Merge branch 'parisc-5.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc fixes from Helge Deller: "Two small fixes: - Fix linking error with 64-bit kernel when modules are disabled, reported by kernel test robot - Remove leftover reference to power_tasklet, by Davidlohr Bueso" * 'parisc-5.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: Enable -mlong-calls gcc option by default when !CONFIG_MODULES parisc: Remove leftover reference to the power_tasklet
2 parents 2ab38c1 + 00e35f2 commit 76c057c

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

arch/parisc/Kconfig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,8 @@ config PREFETCH
202202
depends on PA8X00 || PA7200
203203

204204
config MLONGCALLS
205-
bool "Enable the -mlong-calls compiler option for big kernels"
206-
default y if !MODULES || UBSAN || FTRACE
207-
default n
205+
def_bool y if !MODULES || UBSAN || FTRACE
206+
bool "Enable the -mlong-calls compiler option for big kernels" if MODULES && !UBSAN && !FTRACE
208207
depends on PA8X00
209208
help
210209
If you configure the kernel to include many drivers built-in instead

arch/parisc/include/asm/irq.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,4 @@ extern unsigned long txn_affinity_addr(unsigned int irq, int cpu);
4747
extern int cpu_claim_irq(unsigned int irq, struct irq_chip *, void *);
4848
extern int cpu_check_affinity(struct irq_data *d, const struct cpumask *dest);
4949

50-
/* soft power switch support (power.c) */
51-
extern struct tasklet_struct power_tasklet;
52-
5350
#endif /* _ASM_PARISC_IRQ_H */

arch/parisc/kernel/entry.S

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -997,10 +997,17 @@ intr_do_preempt:
997997
bb,<,n %r20, 31 - PSW_SM_I, intr_restore
998998
nop
999999

1000+
/* ssm PSW_SM_I done later in intr_restore */
1001+
#ifdef CONFIG_MLONGCALLS
1002+
ldil L%intr_restore, %r2
1003+
load32 preempt_schedule_irq, %r1
1004+
bv %r0(%r1)
1005+
ldo R%intr_restore(%r2), %r2
1006+
#else
1007+
ldil L%intr_restore, %r1
10001008
BL preempt_schedule_irq, %r2
1001-
nop
1002-
1003-
b,n intr_restore /* ssm PSW_SM_I done by intr_restore */
1009+
ldo R%intr_restore(%r1), %r2
1010+
#endif
10041011
#endif /* CONFIG_PREEMPTION */
10051012

10061013
/*

0 commit comments

Comments
 (0)