Skip to content

Commit 5a5ca73

Browse files
committed
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull ARM64 fixes from Catalin Marinas: - arm64 build fix following the move of the thread_struct to the end of task_struct and the asm offsets becoming too large for the AArch64 ISA - preparatory patch for moving irq_data struct members (applied now to reduce dependency for the next merging window) * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: ARM64/irq: Use access helper irq_data_get_affinity_mask() arm64: switch_to: calculate cpu context pointer using separate register
2 parents d725e66 + 3bc38fc commit 5a5ca73

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎arch/arm64/kernel/entry.S‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,8 @@ ENDPROC(el0_irq)
585585
*
586586
*/
587587
ENTRY(cpu_switch_to)
588-
add x8, x0, #THREAD_CPU_CONTEXT
588+
mov x10, #THREAD_CPU_CONTEXT
589+
add x8, x0, x10
589590
mov x9, sp
590591
stp x19, x20, [x8], #16 // store callee-saved registers
591592
stp x21, x22, [x8], #16
@@ -594,7 +595,7 @@ ENTRY(cpu_switch_to)
594595
stp x27, x28, [x8], #16
595596
stp x29, x9, [x8], #16
596597
str lr, [x8]
597-
add x8, x1, #THREAD_CPU_CONTEXT
598+
add x8, x1, x10
598599
ldp x19, x20, [x8], #16 // restore callee-saved registers
599600
ldp x21, x22, [x8], #16
600601
ldp x23, x24, [x8], #16

‎arch/arm64/kernel/irq.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void __init init_IRQ(void)
6161
static bool migrate_one_irq(struct irq_desc *desc)
6262
{
6363
struct irq_data *d = irq_desc_get_irq_data(desc);
64-
const struct cpumask *affinity = d->affinity;
64+
const struct cpumask *affinity = irq_data_get_affinity_mask(d);
6565
struct irq_chip *c;
6666
bool ret = false;
6767

@@ -81,7 +81,7 @@ static bool migrate_one_irq(struct irq_desc *desc)
8181
if (!c->irq_set_affinity)
8282
pr_debug("IRQ%u: unable to set affinity\n", d->irq);
8383
else if (c->irq_set_affinity(d, affinity, false) == IRQ_SET_MASK_OK && ret)
84-
cpumask_copy(d->affinity, affinity);
84+
cpumask_copy(irq_data_get_affinity_mask(d), affinity);
8585

8686
return ret;
8787
}

0 commit comments

Comments
 (0)