diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2022-11-11 20:04:31 +0200 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-11-16 08:34:06 +0100 |
commit | a930d69baa958d5f308b3910187c5f3c083fe171 (patch) | |
tree | 509da5ad416d05ca0d2151270a093686e594499f /drivers/timer/xilinx-timer.c | |
parent | 64012e0c52eefa6fbfedbad772133a478bd741ea (diff) |
efi_loader: replace a u16_strdup with alloc + memcpy
Heinrich reports that on RISC-V unaligned access is emulated by OpenSBI
which is very slow. Performance wise it's better if we skip the calls
to u16_strdup() -- which in turn calls u16_strsize() and just allocate/copy the
memory directly. The access to dp.length may still be unaligned, but that's
way less than what u16_strsize() would do
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Use malloc() instead of calloc().
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'drivers/timer/xilinx-timer.c')
0 files changed, 0 insertions, 0 deletions