This stack check implementation leverages the compiler's profiling (gcc -p)
[linux-2.6.git] / drivers / ide / legacy / pdc4030.c
index 0addbae..c07d341 100644 (file)
@@ -355,7 +355,7 @@ read_next:
 #endif /* DEBUG_READ */
 
 #ifdef CONFIG_IDE_TASKFILE_IO
-       task_sectors(drive, rq, nsect, IDE_PIO_IN);
+       task_bio_sectors(drive, rq, nsect, IDE_PIO_IN);
 
        /* FIXME: can we check status after transfer on pdc4030? */
        /* Complete previously submitted bios. */
@@ -478,7 +478,7 @@ static void promise_multwrite (ide_drive_t *drive, unsigned int msect)
                if (nsect > msect)
                        nsect = msect;
 
-               task_sectors(drive, rq, nsect, IDE_PIO_OUT);
+               task_bio_sectors(drive, rq, nsect, IDE_PIO_OUT);
 
                if (!rq->nr_sectors)
                        msect = 0;
@@ -756,12 +756,6 @@ static ide_startstop_t promise_rw_disk (ide_drive_t *drive, struct request *rq,
 
        BUG_ON(rq->nr_sectors > 127);
 
-#ifdef DEBUG
-       printk(KERN_DEBUG "%s: %sing: LBAsect=%lu, sectors=%lu\n",
-                         drive->name, rq_data_dir(rq) ? "writ" : "read",
-                         block, rq->nr_sectors);
-#endif
-
 #ifndef CONFIG_IDE_TASKFILE_IO
        if (IDE_CONTROL_REG)
                hwif->OUTB(drive->ctl, IDE_CONTROL_REG);