SWEEP2WAKE: Moved barrier calculation to sysfs input to speed up driver working thread