crypto/scheduler: add mode-specific threshold parameter