diff options
| author | Fenghua Yu <[email protected]> | 2019-12-20 16:05:55 -0800 |
|---|---|---|
| committer | Miquel Raynal <[email protected]> | 2020-05-10 21:15:52 +0200 |
| commit | 7c26e6ef96c95105d6b1dc828902067df9b0f076 (patch) | |
| tree | 67e5bf237f0a07d40e5d74ecda26cf21987b1859 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 6a8b55ed4056ea5559ebe4f6a4b247f627870d4c (diff) | |
mtd: rawnand: fsmc: Change to non-atomic bit operations
No need to use expensive atomic change_bit() on dat[] and err_idx[]:
1. fsmc_bch8_correct_data() is called while mutex chip->lock is held
2. err_idx[] is a local variable.
To avoid big endian concern due to type cast to unsigned long, directly
change the bit in the specified byte instead of using non-atomic
__change_bit().
Suggested-by: Peter Zijlstra <[email protected]>
Signed-off-by: Fenghua Yu <[email protected]>
Reviewed-by: Tony Luck <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions