[PATCH v5 1/2] perf/core: Fix small negative period being ignored