Lines Matching +full:access +full:- +full:granularity

1 // SPDX-License-Identifier: GPL-2.0-only
17 #include "copy-unaligned.h"
22 #define MISALIGNED_COPY_SIZE ((MISALIGNED_BUFFER_SIZE / 2) - 0x80)
50 word_cycles = -1ULL; in check_unaligned_access()
70 if ((end_cycles - start_cycles) < word_cycles) in check_unaligned_access()
71 word_cycles = end_cycles - start_cycles; in check_unaligned_access()
74 byte_cycles = -1ULL; in check_unaligned_access()
86 if ((end_cycles - start_cycles) < byte_cycles) in check_unaligned_access()
87 byte_cycles = end_cycles - start_cycles; in check_unaligned_access()
94 pr_warn("cpu%d: rdtime lacks granularity needed to measure unaligned access speed\n", in check_unaligned_access()
104 …pr_info("cpu%d: Ratio of byte access time to unaligned word access is %d.%02d, unaligned accesses … in check_unaligned_access()
157 modify_unaligned_access_branches(&fast_except_me, num_online_cpus() - 1); in set_unaligned_access_static_branches_except_cpu()
164 * result of unaligned access speed for all CPUs will be available. in set_unaligned_access_static_branches()
201 return -ENOMEM; in riscv_online_cpu()
220 /* Measure unaligned access speed on all CPUs present at boot in parallel. */
292 word_cycles = -1ULL; in check_vector_unaligned_access()
314 if ((end_cycles - start_cycles) < word_cycles) in check_vector_unaligned_access()
315 word_cycles = end_cycles - start_cycles; in check_vector_unaligned_access()
318 byte_cycles = -1ULL; in check_vector_unaligned_access()
332 if ((end_cycles - start_cycles) < byte_cycles) in check_vector_unaligned_access()
333 byte_cycles = end_cycles - start_cycles; in check_vector_unaligned_access()
340 pr_warn("cpu%d: rdtime lacks granularity needed to measure unaligned vector access speed\n", in check_vector_unaligned_access()
350 …pr_info("cpu%d: Ratio of vector byte access time to vector unaligned word access is %d.%02d, unali… in check_vector_unaligned_access()
362 /* Measure unaligned access speed on all CPUs present at boot in parallel. */