How intel_idle works

When the system is in IDLE state which means nothing to run and swapper is running, it calls cpuidle_idle_call() like shown in the below. [exception RIP: cpuidle_enter_state+0x57] RIP: ffffffff833c1a67 RSP: ffff8917ce84be60 RFLAGS: 00000202 RAX: 0001332321398719 RBX: ffffffff82eaf37b RCX: 0000000000000018 RDX: 0000000225c17d03 RSI: ffff8917ce84bfd8 RDI: 0001332321398719 RBP: ffff8917ce84be88 R8: 0000000000000130 R9: 0000000000000018 R10: 00000000000000c3 R11: 0000000000000400… Continue reading How intel_idle works