direct-io.hg

view patches/linux-2.6.11/nettel.patch @ 4379:9f889c7b053b

bitkeeper revision 1.1159.258.77 (424a789awnI9QtGxkwnLulWuRuSRxA)

Rationalise blkdev settings in frontend drivers.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Mar 30 09:59:54 2005 +0000 (2005-03-30)
parents 60bb8d7ebc64
children 0dc3b8b8c298
line source
1 diff -rup pristine-linux-2.6.11/drivers/mtd/maps/nettel.c linux-2.6.11/drivers/mtd/maps/nettel.c
2 --- pristine-linux-2.6.11/drivers/mtd/maps/nettel.c 2005-03-02 07:37:50.000000000 +0000
3 +++ linux-2.6.11/drivers/mtd/maps/nettel.c 2005-03-11 00:52:55.635506733 +0000
4 @@ -270,7 +270,7 @@ int __init nettel_init(void)
5 maxsize = AMD_WINDOW_MAXSIZE;
7 *amdpar = SC520_PAR(SC520_PAR_BOOTCS, amdaddr, maxsize);
8 - __asm__ ("wbinvd");
9 + wbinvd();
11 nettel_amd_map.phys = amdaddr;
12 nettel_amd_map.virt = ioremap_nocache(amdaddr, maxsize);
13 @@ -380,7 +380,7 @@ int __init nettel_init(void)
14 */
15 intel1addr = intel0addr + intel0size;
16 *intel1par = SC520_PAR(intel1cs, intel1addr, maxsize);
17 - __asm__ ("wbinvd");
18 + wbinvd();
20 maxsize += intel0size;
22 @@ -405,7 +405,7 @@ int __init nettel_init(void)
23 intel1size = intel_mtd->size - intel0size;
24 if (intel1size > 0) {
25 *intel1par = SC520_PAR(intel1cs, intel1addr, intel1size);
26 - __asm__ ("wbinvd");
27 + wbinvd();
28 } else {
29 *intel1par = 0;
30 }