| 93 | return c; |
| 94 | } |
| 95 | unsigned umwait_state() { |
| 96 | static const unsigned s = [] { const char* e = std::getenv("STRATA_POOL_UMWAIT_C02"); return e && *e == '1' ? 0u : 1u; }(); |
| 97 | return s; // 1 = C0.1 (light), 0 = C0.2 |
| 98 | } |
| 99 | // STRATA_POOL_UMWAIT_ESC=<TSC cycles> (experimental): an escalating wait - C0.1 for the first cycles of a park, C0.2 after |
| 100 | // (a wait that has lasted that long is a GPU phase, a draft or a prompt read, where a slower wake costs little). |
| 101 | uint64_t umwait_escalate() { |