ia64/xen-unstable

changeset 648:63be03a97e73

bitkeeper revision 1.365 (3f17b6f6yztKm7xcl6wlzwddpoCpCQ)

ioport.c:
Make ioperm() quieter in Xenolinux.
author kaf24@scramble.cl.cam.ac.uk
date Fri Jul 18 08:59:34 2003 +0000 (2003-07-18)
parents e5b8391908e2
children 9080b9366dbc
files xenolinux-2.4.21-sparse/arch/xeno/kernel/ioport.c
line diff
     1.1 --- a/xenolinux-2.4.21-sparse/arch/xeno/kernel/ioport.c	Thu Jul 17 22:06:34 2003 +0000
     1.2 +++ b/xenolinux-2.4.21-sparse/arch/xeno/kernel/ioport.c	Fri Jul 18 08:59:34 2003 +0000
     1.3 @@ -40,14 +40,9 @@ asmlinkage int sys_iopl(unsigned int new
     1.4  
     1.5  asmlinkage int sys_ioperm(unsigned long from, unsigned long num, int turn_on)
     1.6  {
     1.7 -    if ( turn_on )
     1.8 -        {
     1.9 -        printk("ioperm not fully supported - set iopl to 3\n");
    1.10 -        return sys_iopl(3);
    1.11 -	}
    1.12 -    else
    1.13 -	 printk("ioperm not fully supported - ignore resource release\n");
    1.14 -    return 0;
    1.15 +    printk(KERN_INFO "ioperm not fully supported - %s\n",
    1.16 +           turn_on ? "set iopl to 3" : "ignore resource release");
    1.17 +    return turn_on ? sys_iopl(3) : 0;
    1.18  }
    1.19  
    1.20