[Command(66)] // 6.0.0+
        // SetCpuBoostMode(u32 cpu_boost_mode)
        public ResultCode SetCpuBoostMode(ServiceCtx context)
        {
            uint cpuBoostMode = context.RequestData.ReadUInt32();

            if (cpuBoostMode > 1)
            {
                return(ResultCode.InvalidParameters);
            }

            _cpuBoostMode = (CpuBoostMode)cpuBoostMode;

            // NOTE: There is a condition variable after the assignment, probably waiting something with apm:sys service (SetCpuBoostMode call?).
            //       Since we will probably never support CPU boost things, it's not needed to implement more.

            return(ResultCode.Success);
        }
 internal override void SetCpuBoostMode(CpuBoostMode cpuBoostMode)
 {
     _context.Device.System.PerformanceState.CpuBoostMode = cpuBoostMode;
 }
Exemple #3
0
 internal abstract void SetCpuBoostMode(CpuBoostMode cpuBoostMode);