mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
[MIPS] floppy: Rewrite fd_cacheflush() to use dma_cache_sync().
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
abb4ae4630
commit
7ca16d269a
1 changed files with 3 additions and 1 deletions
|
@ -10,9 +10,11 @@
|
|||
#ifndef _ASM_FLOPPY_H
|
||||
#define _ASM_FLOPPY_H
|
||||
|
||||
#include <linux/dma-mapping.h>
|
||||
|
||||
static inline void fd_cacheflush(char * addr, long size)
|
||||
{
|
||||
dma_cache_wback_inv((unsigned long)addr,size);
|
||||
dma_cache_sync(NULL, addr, size, DMA_BIDIRECTIONAL);
|
||||
}
|
||||
|
||||
#define MAX_BUFFER_SECTORS 24
|
||||
|
|
Loading…
Reference in a new issue