mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 12:12:50 +01:00
Fix utils::get_tsc_freq() (#7974)
Use magic static for once-initialization
This commit is contained in:
parent
4ff69dc0cd
commit
5834a466cd
@ -269,7 +269,7 @@ static constexpr ullong round_tsc(ullong val)
|
||||
|
||||
ullong utils::get_tsc_freq()
|
||||
{
|
||||
const ullong cal_tsc = []() -> ullong
|
||||
static const ullong cal_tsc = []() -> ullong
|
||||
{
|
||||
if (!has_invariant_tsc())
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user