ia64/xen-unstable

changeset 7020:28db21fb7545

Fixes a vtpm timeout problem for slow machines.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Sep 22 15:19:30 2005 +0100 (2005-09-22)
parents 932aa2b425e8
children 10759a44ce3b
files linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c	Thu Sep 22 14:36:20 2005 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c	Thu Sep 22 15:19:30 2005 +0100
     1.3 @@ -566,7 +566,7 @@ vtpm_op_read(struct file *file,
     1.4  				 * the more time we give the TPM to process the request.
     1.5  				 */
     1.6  				mod_timer(&pak->processing_timer,
     1.7 -				          jiffies + (num_frontends * 10 * HZ));
     1.8 +				          jiffies + (num_frontends * 60 * HZ));
     1.9  				dataex.copied_so_far = 0;
    1.10  			}
    1.11  		}
    1.12 @@ -850,7 +850,7 @@ static int vtpm_queue_packet(struct pack
    1.13  		write_lock_irqsave(&dataex.pak_lock, flags);
    1.14  		list_add_tail(&pak->next, &dataex.pending_pak);
    1.15  		/* give the TPM some time to pick up the request */
    1.16 -		mod_timer(&pak->processing_timer, jiffies + (10 * HZ));
    1.17 +		mod_timer(&pak->processing_timer, jiffies + (30 * HZ));
    1.18  		write_unlock_irqrestore(&dataex.pak_lock,
    1.19  		                        flags);
    1.20