We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 475afa3 commit 33981b1Copy full SHA for 33981b1
arch/riscv/kernel/unaligned_access_speed.c
@@ -349,7 +349,7 @@ static void check_vector_unaligned_access(struct work_struct *work __always_unus
349
pr_warn("cpu%d: rdtime lacks granularity needed to measure unaligned vector access speed\n",
350
cpu);
351
352
- return;
+ goto free;
353
}
354
355
if (word_cycles < byte_cycles)
@@ -363,6 +363,9 @@ static void check_vector_unaligned_access(struct work_struct *work __always_unus
363
(speed == RISCV_HWPROBE_MISALIGNED_VECTOR_FAST) ? "fast" : "slow");
364
365
per_cpu(vector_misaligned_access, cpu) = speed;
366
+
367
+free:
368
+ __free_pages(page, MISALIGNED_BUFFER_ORDER);
369
370
371
static int riscv_online_cpu_vec(unsigned int cpu)
0 commit comments