tsc test: Make the test more robust

I've recently saw a lot of failures on running checktest test
on virtual machines. Investigating further, it seems that running it
into VMs just makes a conceptual problem more likely to happen:
Since we're in userspace, the other thread that should read tsc can be
out of the of the cpu at the moment, so all measures will be very different.

This is indicated by the tsc roundtrip. In failed measures, they are all
quite big. So I am proposing this patch, that basically ignores
roundtrips that are twice as big as the threshold, or more. It makes the
test pass to me, in machines I would expect them to.

Also, remove the -static constraint on tsc's Makefile, since it will
cause the compilation to fail in certain boxes.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4474 592f7852-d20e-0410-864c-8624ca9c26a4
3 files changed