libmsr  0.3.0
A friendlier interface to accessing MSRs on Intel platforms
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
Public Attributes | List of all members
clock_mod Struct Reference

Structure containing data for IA32_CLOCK_MODULATION. More...

#include <msr_clocks.h>

Public Attributes

uint64_t raw
 Raw 64-bit value stored in IA32_CLOCK_MODULATION.
 
int duty_cycle_enable
 Enable/disable on-demand software-controlled clock modulation.
 
int duty_cycle
 On-demand clock modulation duty cycle.
 

Detailed Description

Structure containing data for IA32_CLOCK_MODULATION.

There is a bit at 0 that can be used for Extended On-Demand Clock Modulation Duty Cycle. It is added with the bits 3:1. When used, the granularity of clock modulation duty cycle is increased to 6.25% as opposed to 12.5%. To enable this, must have CPUID.06H:EAX[Bit 5] = 1. I am not sure how to check that because otherwise bit 0 is reserved.

Member Data Documentation

int clock_mod::duty_cycle

On-demand clock modulation duty cycle.

int clock_mod::duty_cycle_enable

Enable/disable on-demand software-controlled clock modulation.

uint64_t clock_mod::raw

Raw 64-bit value stored in IA32_CLOCK_MODULATION.


The documentation for this struct was generated from the following file: