blob: 5de1e5e653d9a2ce64de89c36b3bec22eabda8d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- api/api.c.orig 2018-07-09 14:24:14 UTC
+++ api/api.c
@@ -289,6 +289,11 @@ static int API_dev_close(va_list ap)
if (!err)
di->state = DEV_STA_CLOSED;
+ if (dcache_status())
+ flush_dcache_all();
+ if (icache_status())
+ invalidate_icache_all();
+
return err;
}
|