x86: Add get_actual_pstate()
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 24 Oct 2017 20:04:34 +0000 (16:04 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 26 Oct 2017 18:33:29 +0000 (14:33 -0400)
commit9149ab5e6a29ee449908ed428ede857184108a70
tree81dc70ebbdcb6066278351b77c404295cd7eb98c
parent3474834b09054cd2e9faa668524cd1322670f1c4
x86: Add get_actual_pstate()

This is useful for seeing what p-state a core is actually running at.  For
instance:

$ m monitor 4

(entered monitor on 4)

> kfunc get_actual_pstate

That'll tell you the p-state, and other cores won't be active, which can
interfere with the p-state the core can actually run at.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/idle.c