mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	libata: Remove excess delay in the tf_load path
We don't need to stall and wait after loading the task file and before issuing a command, so don't do it. This shows up on profiles and is not needed. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
		
							parent
							
								
									95cc2c70c1
								
							
						
					
					
						commit
						978c066691
					
				
					 2 changed files with 0 additions and 5 deletions
				
			
		| 
						 | 
					@ -604,7 +604,6 @@ void ata_sff_tf_load(struct ata_port *ap, const struct ata_taskfile *tf)
 | 
				
			||||||
		if (ioaddr->ctl_addr)
 | 
							if (ioaddr->ctl_addr)
 | 
				
			||||||
			iowrite8(tf->ctl, ioaddr->ctl_addr);
 | 
								iowrite8(tf->ctl, ioaddr->ctl_addr);
 | 
				
			||||||
		ap->last_ctl = tf->ctl;
 | 
							ap->last_ctl = tf->ctl;
 | 
				
			||||||
		ata_wait_idle(ap);
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) {
 | 
						if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) {
 | 
				
			||||||
| 
						 | 
					@ -640,8 +639,6 @@ void ata_sff_tf_load(struct ata_port *ap, const struct ata_taskfile *tf)
 | 
				
			||||||
		iowrite8(tf->device, ioaddr->device_addr);
 | 
							iowrite8(tf->device, ioaddr->device_addr);
 | 
				
			||||||
		VPRINTK("device 0x%X\n", tf->device);
 | 
							VPRINTK("device 0x%X\n", tf->device);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					 | 
				
			||||||
	ata_wait_idle(ap);
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
EXPORT_SYMBOL_GPL(ata_sff_tf_load);
 | 
					EXPORT_SYMBOL_GPL(ata_sff_tf_load);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -417,8 +417,6 @@ static void via_tf_load(struct ata_port *ap, const struct ata_taskfile *tf)
 | 
				
			||||||
			tf->lbam,
 | 
								tf->lbam,
 | 
				
			||||||
			tf->lbah);
 | 
								tf->lbah);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					 | 
				
			||||||
	ata_wait_idle(ap);
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static int via_port_start(struct ata_port *ap)
 | 
					static int via_port_start(struct ata_port *ap)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue