Commit 4554ab95 authored by Ingo Molnar's avatar Ingo Molnar

x86: re-add clflush_cache_range()

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent b195bc00
......@@ -9,6 +9,14 @@
#include <linux/slab.h>
#include <linux/mm.h>
void clflush_cache_range(void *addr, int size)
{
int i;
for (i = 0; i < size; i += boot_cpu_data.x86_clflush_size)
clflush(addr+i);
}
#include <asm/processor.h>
#include <asm/tlbflush.h>
#include <asm/sections.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment