Skip to content
Commit a4d71e29 authored by Jonathan Bell's avatar Jonathan Bell Committed by Dom Cobley
Browse files

drivers: mmc: preallocate a block for SD extension register accesses



The Performance Extension register is regularly accessed in a hot path
to do write cache flushes. Don't invoke kmalloc/kfree for every access,
preallocate a 512B buffer for this purpose.

Also remove an unused alloc in sd_enable_cache().

Signed-off-by: default avatarJonathan Bell <jonathan@raspberrypi.com>
parent 2e85e7b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment