mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] Get rid of "double zeroing" of allocated pages
Simplify the few instances where a call to "get_zeroed_page()" is closely followed by an unnecessary call to memset() to clear that page. Signed-off-by: Robert P. J. Day <[email protected]> Cc: chas williams <[email protected]> Acked-by: Mauro Carvalho Chehab <[email protected]> Cc: James Bottomley <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
78ba2faf71
commit
aa58d61d18
3 changed files with 0 additions and 3 deletions
|
|
@ -3099,7 +3099,6 @@ allocate_cmd (Scsi_Cmnd *cmd) {
|
|||
real = get_zeroed_page(GFP_ATOMIC);
|
||||
if (real == 0)
|
||||
return NULL;
|
||||
memset((void *)real, 0, 4096);
|
||||
cache_push(virt_to_phys((void *)real), 4096);
|
||||
cache_clear(virt_to_phys((void *)real), 4096);
|
||||
kernel_set_cachemode((void *)real, 4096, IOMAP_NOCACHE_SER);
|
||||
|
|
|
|||
Loading…
Reference in a new issue