  {
  	uint32_t handles[4] = {0}, pitches[4] = {0}, offsets[4] = {0};
  	unsigned int other_fb_id;
-@@ -1255,7 +1255,7 @@ static void test_page_flip(struct device *dev, struct pipe_arg *pipes, unsigned
+@@ -1570,7 +1570,7 @@ static void test_page_flip(struct device *dev, struct pipe_arg *pipes, unsigned
  		fd_set fds;
  
  		FD_ZERO(&fds);

 		default:
 			usage(argv[0]);
 			break;
@@ -1671,7 +1676,7 @@ int main(int argc, char **argv)
 			set_cursors(&dev, pipe_args, count);
 
 		if (test_vsync)
-			test_page_flip(&dev, pipe_args, count);
+			test_page_flip(&dev, pipe_args, count, dont_stop);
 
 		if (drop_master)
 			drmDropMaster(dev.fd);
-- 
1.9.1


 		FD_SET(dev->fd, &fds);
 		ret = select(dev->fd + 1, &fds, NULL, NULL, &timeout);
 
@@ -1818,7 +1818,7 @@ static int pipe_resolve_connectors(struct device *dev, struct pipe_arg *pipe)
 	return 0;
 }
 
-static char optstr[] = "acdD:efM:P:ps:Cvw:";
+static char optstr[] = "acdD:efM:P:ps:Cvw:t";
 
 int main(int argc, char **argv)
 {
@@ -1834,6 +1834,7 @@ int main(int argc, char **argv)
 	char *module = NULL;
 	unsigned int i;
 	unsigned int count = 0, plane_count = 0;
