diff options
| -rw-r--r-- | arch/arm64/kernel/irq.c | 10 | ||||
| -rw-r--r-- | arch/arm64/mm/hugetlbpage.c | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/arch/arm64/kernel/irq.c b/arch/arm64/kernel/irq.c index 473e5dbf8f39..0f08dfd69ebc 100644 --- a/arch/arm64/kernel/irq.c +++ b/arch/arm64/kernel/irq.c | |||
| @@ -97,11 +97,15 @@ static bool migrate_one_irq(struct irq_desc *desc) | |||
| 97 | if (irqd_is_per_cpu(d) || !cpumask_test_cpu(smp_processor_id(), affinity)) | 97 | if (irqd_is_per_cpu(d) || !cpumask_test_cpu(smp_processor_id(), affinity)) |
| 98 | return false; | 98 | return false; |
| 99 | 99 | ||
| 100 | if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) { | 100 | if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) |
| 101 | affinity = cpu_online_mask; | ||
| 102 | ret = true; | 101 | ret = true; |
| 103 | } | ||
| 104 | 102 | ||
| 103 | /* | ||
| 104 | * when using forced irq_set_affinity we must ensure that the cpu | ||
| 105 | * being offlined is not present in the affinity mask, it may be | ||
| 106 | * selected as the target CPU otherwise | ||
| 107 | */ | ||
| 108 | affinity = cpu_online_mask; | ||
| 105 | c = irq_data_get_irq_chip(d); | 109 | c = irq_data_get_irq_chip(d); |
| 106 | if (!c->irq_set_affinity) | 110 | if (!c->irq_set_affinity) |
| 107 | pr_debug("IRQ%u: unable to set affinity\n", d->irq); | 111 | pr_debug("IRQ%u: unable to set affinity\n", d->irq); |
diff --git a/arch/arm64/mm/hugetlbpage.c b/arch/arm64/mm/hugetlbpage.c index 5e9aec358306..31eb959e9aa8 100644 --- a/arch/arm64/mm/hugetlbpage.c +++ b/arch/arm64/mm/hugetlbpage.c | |||
| @@ -51,7 +51,11 @@ int pmd_huge(pmd_t pmd) | |||
| 51 | 51 | ||
| 52 | int pud_huge(pud_t pud) | 52 | int pud_huge(pud_t pud) |
| 53 | { | 53 | { |
| 54 | #ifndef __PAGETABLE_PMD_FOLDED | ||
| 54 | return !(pud_val(pud) & PUD_TABLE_BIT); | 55 | return !(pud_val(pud) & PUD_TABLE_BIT); |
| 56 | #else | ||
| 57 | return 0; | ||
| 58 | #endif | ||
| 55 | } | 59 | } |
| 56 | 60 | ||
| 57 | int pmd_huge_support(void) | 61 | int pmd_huge_support(void) |
