U
U
umberford2018-08-24 11:24:09
Processors
umberford, 2018-08-24 11:24:09

Is it possible to programmatically access the processing power of the processor?

Lenovo laptops have a built-in program where you can lower / increase the clock speed on the cores
It became interesting whether it is possible to write an analogue of this program in C or in something else
Which way to dig?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
vaut, 2018-08-24
@vaut

It's not clear from your question what you want.
Own drivers that will control the frequency or an application that will work on top of already implemented drivers.
You can explore how both are done in Linux.
You can start from here:
https://wiki.archlinux.org/index.php/CPU_frequency...
https://www.kernel.org/doc/Documentation/cpu-freq/...

P
pfg21, 2018-08-24
@pfg21

the processor has a module that generates frequencies for the processor.
it interacts with the software with a set of parameters that are mapped to specific addresses in the shared memory.
if we take a description of a particular processor, then there will be presented where what number to write down in order to get the necessary change.
but the operating system, quite naturally, restricts access to the address space of the system settings for a simple user, and control is possible only through the appropriate driver.
usually this is cpufreq and a set of parameters in / sys, read its description.

C
CityCat4, 2018-08-24
@CityCat4

Can.
There is such a language - assembler :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question