Searched hist:"50 d09c0bdea5e01d0341fc75ddd65764fec71aca" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/mtd/spi/ |
| H A D | spi_flash.c | 50d09c0bdea5e01d0341fc75ddd65764fec71aca Mon Oct 01 18:22:09 UTC 2018 Simon Glass <sjg@chromium.org> UPSTREAM: sf: Avoid allocating memory on every read operation
At present spi_flash_cmd_read_ops() allocates and frees a few bytes of memory every time it is called. It is faster to use the stack for this and this is now supported by the minimum GCC version required by U-Boot.
Remove the allocation and use a variable-sized array instead.
Change-Id: I1c59601b4d56cd941784cbdac830a562c1491bbd Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Jon Lin <jon.lin@rock-chips.com> (cherry picked from commit 97f57109bb750d0b2908d6ecd4aef3801baf1cf2)
|