The function is measurable and 0≤cos2(1/x)≤1. The interval has finite measure, so its integral is at most one. Hence it is integrable, despite its oscillations near zero.
As x→∞, cos2(1/x)→1. It is therefore at least 1/2 on some infinite tail. The integral of that lower bound is infinite, so it is not integrable on this interval.