In most cases the 'card->erase_size' is power of 2, then the round_up/down()
function is more efficient than '%' operation when the 'card->erase_size' is
power of 2.
Signed-off-by: Baolin Wang
Tested-by: Shawn Lin
---
drivers/mmc/core/core.c |
In most cases the 'card->erase_size' is power of 2, then the round_up/down()
function is more efficient than '%' operation when the 'card->erase_size' is
power of 2.
Signed-off-by: Baolin Wang
Tested-by: Shawn Lin
---
drivers/mmc/core/core.c | 34 ++
1 file
2 matches
Mail list logo