[PATCH v4 3/3] mmc: core: Optimize the mmc erase size alignment

2016-09-05 Thread Baolin Wang
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 |

[PATCH v4 3/3] mmc: core: Optimize the mmc erase size alignment

2016-09-05 Thread Baolin Wang
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