1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

by waiting for new tasks, the core will be set to the C3 state

=> reduce the power consumption
This commit is contained in:
Stefan Lankes 2016-11-07 21:10:00 +01:00
parent 068fbf2cb6
commit e7849997d7

View file

@ -148,6 +148,6 @@ void wait_for_task(void)
clflush(queue);
monitor(queue, 0, 0);
mwait(0xF /* = c0 */, 1 /* break on interrupt flag */);
mwait(0x2 /* 0x2 = c3, 0xF = c0 */, 1 /* break on interrupt flag */);
}
}