CN117992206A - Frequency adjusting method and related device for central processing unit - Google Patents

Frequency adjusting method and related device for central processing unit Download PDF

Info

Publication number
CN117992206A
CN117992206A CN202211353204.4A CN202211353204A CN117992206A CN 117992206 A CN117992206 A CN 117992206A CN 202211353204 A CN202211353204 A CN 202211353204A CN 117992206 A CN117992206 A CN 117992206A
Authority
CN
China
Prior art keywords
frequency
upper limit
limit
user
default
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211353204.4A
Other languages
Chinese (zh)
Inventor
杨倬
崔晓刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guang Dong Ming Chuang Software Technology Corp ltd
Original Assignee
Guang Dong Ming Chuang Software Technology Corp ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guang Dong Ming Chuang Software Technology Corp ltd filed Critical Guang Dong Ming Chuang Software Technology Corp ltd
Priority to CN202211353204.4A priority Critical patent/CN117992206A/en
Publication of CN117992206A publication Critical patent/CN117992206A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Telephone Function (AREA)

Abstract

The application provides a frequency adjustment method and a related device of a central processing unit, wherein a default frequency upper limit is adjusted to a first frequency upper limit according to the current equipment temperature, the default frequency upper limit is an initial maximum working frequency of the central processing unit, the first frequency upper limit is used for enabling the working frequency of the central processing unit not to be higher than the first frequency upper limit, and the first frequency upper limit is lower than the default frequency upper limit; then, if the current application scene is identified as a first scene with the user perception degree higher than a preset perception degree threshold, determining a second frequency upper limit meeting the current performance requirement, wherein the second frequency upper limit is higher than the first frequency upper limit but not higher than the default frequency upper limit; finally, the first upper frequency limit is adjusted to the second upper frequency limit. The frequency upper limit can be flexibly adjusted based on the current application scene on the basis of adjusting the frequency of the central processing unit according to the temperature, so that the user experience is greatly improved.

Description

Frequency adjusting method and related device for central processing unit
Technical Field
The application relates to the technical field of computers, in particular to a frequency adjustment method and a related device of a central processing unit.
Background
The frequency of the central processing unit (Central Processing Unit, CPU) is limited by a preset frequency upper limit and a preset frequency lower limit, the actual frequency can only fluctuate between the frequency upper limit and the frequency lower limit, and the frequency of the CPU can be forcedly reduced when the temperature reaches a threshold value at present so as to prevent the temperature from being too high, but sometimes the performance requirement cannot be met by reducing the actual frequency upper limit, the phenomenon of clamping and the like occurs, and the user experience is poor.
Disclosure of Invention
In view of this, the present application provides a method and related device for adjusting frequency of a central processing unit, which can identify a scene with higher user perception and timely open a frequency upper limit meeting current performance requirements, thereby improving user experience.
In a first aspect, an embodiment of the present application provides a method for adjusting a frequency of a central processing unit, where the method includes:
Adjusting a default frequency upper limit to a first frequency upper limit according to the current equipment temperature, wherein the default frequency upper limit is an initial maximum working frequency of the central processing unit, the first frequency upper limit is used for enabling the working frequency of the central processing unit to be not higher than the first frequency upper limit, and the first frequency upper limit is lower than the default frequency upper limit;
If the current application scene is identified as a first scene with the user perception degree higher than a preset perception degree threshold, determining a second frequency upper limit meeting the current performance requirement, wherein the user perception degree is used for indicating the interaction degree of a user and equipment, and the second frequency upper limit is higher than the first frequency upper limit but not higher than the default frequency upper limit;
the first upper frequency limit is adjusted to the second upper frequency limit.
In a second aspect, an embodiment of the present application provides a frequency adjustment device for a central processing unit, where the device includes:
the temperature control unit is used for adjusting a default frequency upper limit to be a first frequency upper limit according to the current equipment temperature, wherein the default frequency upper limit is an initial maximum working frequency of the central processing unit, the first frequency upper limit is used for enabling the working frequency of the central processing unit not to be higher than the first frequency upper limit, and the first frequency upper limit is lower than the default frequency upper limit;
The frequency determining unit is used for determining a second frequency upper limit meeting the current performance requirement if the current application scene is identified as a first scene with the user perception degree higher than a preset perception degree threshold, wherein the user perception degree is used for indicating the interaction degree of a user and equipment, and the second frequency upper limit is higher than the first frequency upper limit but not higher than the default frequency upper limit;
and the frequency adjusting unit is used for adjusting the first frequency upper limit to the second frequency upper limit.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing steps in any of the methods of the first aspect of the embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform part or all of the steps as described in any of the methods of the first aspect of the embodiments of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in any of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that the embodiments of the present application provide a method for adjusting a frequency of a central processing unit and a related apparatus, firstly, according to a current device temperature, an upper frequency limit is adjusted to be a first upper frequency limit, where the default upper frequency limit is an initial maximum operating frequency of the central processing unit, the first upper frequency limit is used to make the operating frequency of the central processing unit not higher than the first upper frequency limit, and the first upper frequency limit is lower than the default upper frequency limit; then, if the current application scene is identified as a first scene with the user perception degree higher than a preset perception degree threshold, determining a second frequency upper limit meeting the current performance requirement, wherein the user perception degree is used for indicating the interaction degree of a user and equipment, and the second frequency upper limit is higher than the first frequency upper limit but not higher than the default frequency upper limit; finally, the first upper frequency limit is adjusted to the second upper frequency limit. The frequency upper limit can be flexibly adjusted based on the current application scene on the basis of adjusting the frequency of the central processing unit according to the temperature, so that the user experience is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a system architecture diagram of a method for adjusting frequency of a cpu according to an embodiment of the present application;
Fig. 2 is a flow chart of a method for adjusting frequency of a cpu according to an embodiment of the present application;
Fig. 3 is a flowchart illustrating another method for adjusting frequency of a cpu according to an embodiment of the present application;
FIG. 4 is a schematic diagram of upper and lower frequency limits of a CPU according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a functional unit block diagram of a frequency adjustment device of a central processing unit according to an embodiment of the present application;
fig. 7 is a block diagram illustrating functional units of another frequency adjustment device for a cpu according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
It should be understood that the term "and/or" is merely an association relationship describing the associated object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In this context, the character "/" indicates that the front and rear associated objects are an "or" relationship. The term "plurality" as used in the embodiments of the present application means two or more.
"At least one" or the like in the embodiments of the present application means any combination of these items, including any combination of single item(s) or plural items(s), meaning one or more, and plural means two or more. For example, at least one (one) of a, b or c may represent the following seven cases: a, b, c, a and b, a and c, b and c, a, b and c. Wherein each of a, b, c may be an element or a set comprising one or more elements.
The "connection" in the embodiment of the present application refers to various connection manners such as direct connection or indirect connection, so as to implement communication between devices, which is not limited in the embodiment of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The following is a description of the background of the application and related terms.
The background technology is related:
The current central processing unit generally can reduce the practical upper limit of operating frequency step by step along with the rising of temperature, prevents that the temperature from being too high, but sometimes the user can intuitively perceive phenomenon such as the card that reduces the frequency and bring, in addition, sometimes when needs promote the performance fast, the adjustment of frequency is not fast enough, needs directly promote the frequency lower limit, when promoting the frequency lower limit, sometimes the frequency lower limit that promotes can conflict with the frequency upper limit that the temperature corresponds, leads to appearing the system confusion, very influences user experience.
In order to solve the above problems, embodiments of the present application provide a method for adjusting a frequency of a central processing unit and a related device, which can flexibly adjust an upper frequency limit based on a current application scenario under the condition that the frequency of the central processing unit needs to be adjusted according to temperature, thereby greatly improving user experience.
In the following description of a system architecture of a method for adjusting a frequency of a central processing unit according to an embodiment of the present application with reference to fig. 1, fig. 1 is a system architecture diagram of a method for adjusting a frequency of a central processing unit according to an embodiment of the present application, where the system architecture 100 includes a central processing unit 110, a temperature-frequency control unit 120, and a scene-frequency control unit 130, where the central processing unit 110 has a default upper frequency limit and a default lower frequency limit that are preset, the temperature-frequency control unit 120 may be used to adjust the upper frequency limit and/or the lower frequency limit of the central processing unit 110 according to a current device temperature, and the scene-frequency control unit 130 may be used to temporarily adjust the upper frequency limit and/or the lower frequency limit corresponding to the current device temperature further according to a current application scene.
Through the system architecture, the upper and lower frequency limits can be flexibly adjusted by combining the current application scene on the basis of adjusting the upper and lower frequency limits of the central processing unit according to the temperature, and the user experience is greatly improved.
It will be appreciated that the system architecture described above may be applied to an electronic device, which may be a portable electronic device that also includes other functionality such as personal digital assistant and/or music player functionality, such as a cell phone, tablet computer, wearable electronic device with wireless communication functionality (e.g., a smart watch), etc. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices that are equipped with IOS systems, android systems, microsoft systems, or other operating systems. The portable electronic device may also be other portable electronic devices such as a Laptop computer (Laptop) or the like. It should also be appreciated that in other embodiments, the electronic device described above may not be a portable electronic device, but rather a desktop computer, server, or the like. And will not be described in detail herein.
The following describes a method for adjusting the frequency of a central processing unit according to an embodiment of the present application with reference to fig. 2, and fig. 2 is a flow chart of a method for adjusting the frequency of a central processing unit according to an embodiment of the present application, which specifically includes the following steps:
In step 201, the default upper frequency limit is adjusted to a first upper frequency limit based on the current device temperature.
The default upper frequency limit is an initial maximum operating frequency of the central processing unit, the first upper frequency limit is used for enabling the operating frequency of the central processing unit to be not higher than the first upper frequency limit, and the first upper frequency limit is lower than the default upper frequency limit.
The first frequency upper limit to be adjusted can be determined according to the mapping relation between the device temperature and the first frequency upper limit, in general, the default frequency upper limit will not change when the device temperature does not reach a certain threshold, for example, when the device temperature is 20 ° -40 °, the device temperature will not affect the central processor, only the default frequency upper limit needs to be maintained, and the device temperature is inversely related to the first frequency upper limit when the device temperature is higher than a certain threshold, for example, the device temperature is 70 °, and at this time, the default frequency upper limit can be reduced to the first frequency upper limit corresponding to 70 ° in order to reduce the temperature. It can be understood that the first upper frequency limit is a frequency point with relatively high energy efficiency ratio at the corresponding equipment temperature, so that the working frequency of the central processor cannot break through the first upper frequency limit, and the influence caused by the equipment temperature can be effectively reduced.
Step 202, if the current application scenario is identified as the first scenario with the user perception degree higher than the preset perception degree threshold, determining a second frequency upper limit meeting the current performance requirement.
The user perception is used for indicating the interaction degree of the user and the device, and the second frequency upper limit is higher than the first frequency upper limit but not higher than the default frequency upper limit, namely the second frequency upper limit is higher than the first frequency upper limit and is smaller than or equal to the default frequency upper limit.
It can be understood that when the user perceptibility is higher than the preset perceptibility threshold value, it is indicated that the user and the device are performing relatively close interaction, the interaction can be directly perceived by the sense organs of the user, at this time, the performance experience of the user is obviously higher, if the first upper frequency limit is maintained, the working frequency of the central processing unit cannot meet the performance requirement, and at this time, the working frequency of the central processing unit cannot meet the performance requirement because of the scene of the close interaction of the user and the device, the phenomenon of blocking, frame dropping and the like which can be obviously perceived by the user is directly reflected, the user experience is very affected, and at this time, a second upper frequency limit meeting the current performance requirement needs to be determined, so as to improve the user experience.
Specifically, the second frequency upper limit can be determined according to the current load type and the current load size, the maximum required calculation force can be determined according to the current load type and the current load size, and the second frequency upper limit corresponding to the maximum required calculation force is determined, and it can be understood that the specific working frequency of the central processing unit is not adjusted at this time, but the boundary of the working frequency is adjusted, so that the method and the device are not required to be very accurate, and only the phenomenon that a user can obviously sense a jam, a frame drop and the like can not occur under the maximum frequency corresponding to the second frequency upper limit is required to be ensured.
And step 203, adjusting the first upper frequency limit to the second upper frequency limit.
The method comprises the steps of determining a current application scene as a first duration of a first scene, and adjusting the first frequency upper limit to the second frequency upper limit in the first duration. It will be appreciated that after the first duration is reached, the second upper frequency limit may be restored to the first upper frequency limit corresponding to the current temperature to prevent the temperature from being too high.
It can be understood that the second frequency upper limit meeting the current performance requirement can be timely opened when the user perception is strong, the problems of blocking and frame dropping are prevented, and the user experience is greatly improved.
The following describes another method for adjusting the frequency of a cpu according to an embodiment of the present application with reference to fig. 3, and fig. 3 is a flowchart of another method for adjusting the frequency of a cpu according to an embodiment of the present application, which specifically includes the following steps:
Step 301, adjusting the default upper frequency limit to a first upper frequency limit according to the current device temperature.
Step 302, determining a user behavior type according to at least one of load data, frequency data and user interaction behavior with the device.
The user behavior type may include a user interface interaction type and a background interaction type, where the user behavior type is the user interface interaction type, it may be understood that the user and the device perform an interaction that the user can obviously perceive, the device needs to present feedback corresponding to the user instruction, and the user behavior type is the background interaction type, where the user and the device perform an interaction that the user cannot obviously perceive, and the device performs corresponding processing in the background.
In a possible embodiment, the user behavior type may be determined to be a user interface interaction type when it is detected that the interaction behavior of the user and the device belongs to a user interface interaction operation, and specifically, the user interface interaction operation may include at least one of a voice interaction operation, a triggering interaction operation, and a space interaction operation, for example, the user clicks, swipes, etc. on a screen of the device, the user performs a voice interaction on the device, and the user uses a space gesture interaction on the device, which is not limited herein. Therefore, the current application scene can be accurately identified as the first scene with stronger user perception degree by detecting the interaction behavior of the user and the equipment. Similarly, if the interaction behavior of the user and the device is detected not to belong to the user interface interaction operation, the user behavior type can be determined to be the background interaction type, such as file decompression, garbage collection, memory cleaning and the like, which is not particularly limited herein.
In a possible embodiment, the user behavior type may be determined to be the user interface interaction type in case it is detected that the load data belongs to the user interface interaction load and/or it is identified that the frequency data corresponds to the first frequency transformation state. Similarly, the user behavior type may be determined to be a background interaction type when the load data is detected to belong to a background load and/or the frequency data is identified to conform to the second frequency change state.
It may be understood that the load data includes a load type of each current load and a load size of each current load, the device may prestore a first load type corresponding to the user interface interaction load and a second load type corresponding to the background load, and may compare and determine whether the first load type and the second load type exist in all current load types, and determine that the main load is determined according to the load size when the first load type and/or the second load type exist in all current load types, and determine that the load data belongs to the user interface interaction load when the main load is the first load type, and determine that the load data belongs to the background interaction load when the main load is the second load type; the frequency data includes frequency variation, it can be understood that, generally, the frequency is adjusted by the frequency modulator (governor), different user behavior types can correspond to different frequency modulation strategies, and the frequency data can be divided into a first frequency modulation strategy corresponding to a user interface interaction type and a second frequency modulation strategy corresponding to a background interaction type, wherein the first frequency modulation strategy can cause the frequency to present a first frequency variation state, and the second frequency modulation strategy can cause the frequency to present a second frequency variation state, so that the frequency modulation strategy corresponding to the frequency variation can be determined, and the current user behavior type can be determined according to the frequency modulation strategy.
Step 303, if the user behavior type is the user interface interaction type, determining that the user perceptibility is higher than a preset perceptibility threshold, and the current application scene is the first scene.
Step 304, if the current application scenario is identified as the first scenario with the user perception degree higher than the preset perception degree threshold, determining a second frequency upper limit meeting the current performance requirement.
Step 305, adjusting the first upper frequency limit to the second upper frequency limit.
Step 306, if the user behavior type is a background interaction type, determining that the user perceptibility is lower than or equal to the preset perceptibility threshold, and the current application scene is a second scene.
Step 307, if the current application scenario is identified as the second scenario with the user perceptibility being lower than or equal to the preset perceptibility threshold, determining a first frequency lower limit meeting the current performance requirement.
The first frequency lower limit is used for enabling the working frequency of the central processing unit to be not lower than the first frequency lower limit, the first frequency lower limit is higher than the default frequency lower limit but not higher than the first frequency upper limit, and it can be understood that in order to improve the efficiency of frequency adjustment, the default frequency lower limit can be directly improved, but sometimes the improved frequency lower limit is higher than the current frequency upper limit, so that the problem of conflict is caused.
It will be appreciated that the minimum required computing force may be determined based on the current load type and current load size, and a first lower frequency limit corresponding to the minimum required computing force may be determined, which may meet the minimum criteria of the current performance requirements.
Step 308, adjusting the default lower frequency limit to the first lower frequency limit.
The current application scene may be determined as a second duration of the second scene, and the default frequency lower limit may be adjusted to be the first frequency lower limit within the second duration. It will be appreciated that after the second duration is reached, the first lower frequency limit may be restored to the default lower frequency limit to prevent excessive temperatures.
And 309, determining a target frequency according to the current performance requirement, and adjusting the central processing unit to the target frequency.
Wherein this step may be performed after step 305 and step 308, the target frequency being within the second upper frequency limit and the first lower frequency limit.
For convenience of understanding, in the following description of the first frequency upper limit, the second frequency upper limit, and the first frequency lower limit in the embodiment of the present application with reference to fig. 4, fig. 4 is a schematic diagram of the first frequency upper limit and the second frequency lower limit of the central processing unit provided in the embodiment of the present application, it can be seen that, when the frequency upper limit needs to be adjusted according to the device temperature, the default frequency upper limit may be adjusted to the first frequency upper limit, and the maximum frequency cannot be higher than the first frequency upper limit, and when the first scene that the current application scene is the first scene that the user perception degree is higher than the preset perception degree threshold is identified, the first frequency upper limit may be adjusted to the second frequency upper limit, and in the first scene, the maximum frequency cannot be higher than the second frequency upper limit, and the second frequency upper limit may be higher than the first frequency upper limit and less than or equal to the default frequency upper limit; under the condition that the current application scene is identified as a second scene with the user perception degree lower than or equal to the preset perception degree threshold, the default frequency lower limit can be adjusted to be a first frequency lower limit according to the current performance requirement, and at the moment, the current lowest frequency cannot be lower than the first frequency lower limit, and the first frequency lower limit is higher than the default frequency lower limit but not higher than the first frequency upper limit.
It can be understood that the second frequency upper limit meeting the current performance requirement can be timely opened when the user perception degree is strong, the problems of blocking and frame dropping are prevented, the default frequency lower limit is timely lifted to the first frequency lower limit when the user perception degree is low, the first frequency lower limit is limited to be incapable of breaking through the first frequency upper limit, and the user experience is greatly promoted.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, as shown in fig. 5, the electronic device 500 includes a processor 501, a communication module 502, and a memory 503, where the processor 501, the communication module 502, and the memory 503 are connected to each other, and the electronic device 500 may further include a bus 504, where the processor 501, the communication module 502, and the memory 503 may be connected to each other through the bus 504, and the bus 504 may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, abbreviated as PCI) bus, an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, or the like. The bus 504 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 5, but not only one bus or one type of bus. The memory 503 is used to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform all or part of the methods described in fig. 2,3 above.
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application can divide the functional units of the electronic device according to the method example, for example, each functional unit can be divided corresponding to each function, and two or more functions can be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
In the case of dividing each functional module into respective functional modules, a device testing apparatus according to an embodiment of the present application will be described in detail below with reference to fig. 6, and fig. 6 is a block diagram of functional units of a frequency adjusting apparatus of a central processing unit according to an embodiment of the present application, where a frequency adjusting apparatus 600 of a central processing unit includes:
A temperature control unit 610, configured to adjust a default upper frequency limit to a first upper frequency limit according to a current device temperature, where the default upper frequency limit is an initial maximum operating frequency of the central processor, the first upper frequency limit is used to make the operating frequency of the central processor not higher than the first upper frequency limit, and the first upper frequency limit is lower than the default upper frequency limit;
The frequency determining unit 620 is configured to determine, if the current application scenario is identified as a first scenario with a user perceptibility higher than a preset perceptibility threshold, a second upper frequency limit meeting a current performance requirement, where the user perceptibility is used to indicate a degree of interaction between a user and a device, and the second upper frequency limit is higher than the first upper frequency limit but not higher than the default upper frequency limit;
A frequency adjustment unit 630, configured to adjust the first upper frequency limit to the second upper frequency limit.
By the frequency adjustment method and the related device of the central processing unit, firstly, the default frequency upper limit is adjusted to be the first frequency upper limit according to the current equipment temperature, wherein the default frequency upper limit is the initial maximum working frequency of the central processing unit, the first frequency upper limit is used for enabling the working frequency of the central processing unit not to be higher than the first frequency upper limit, and the first frequency upper limit is lower than the default frequency upper limit; then, if the current application scene is identified as a first scene with the user perception degree higher than a preset perception degree threshold, determining a second frequency upper limit meeting the current performance requirement, wherein the user perception degree is used for indicating the interaction degree of a user and equipment, and the second frequency upper limit is higher than the first frequency upper limit but not higher than the default frequency upper limit; finally, the first upper frequency limit is adjusted to the second upper frequency limit. The frequency upper limit can be flexibly adjusted based on the current application scene on the basis of adjusting the frequency of the central processing unit according to the temperature, so that the user experience is greatly improved.
It should be noted that, the specific implementation of each operation may be described in the above-illustrated method embodiment, and the frequency adjustment device 600 of the central processing unit may be used to execute the above-described method embodiment of the present application, which is not described herein.
In the case of using integrated units, the frequency adjustment device 700 of another central processing unit in the embodiment of the present application will be described in detail below with reference to fig. 7, where the frequency adjustment device 700 of the central processing unit includes a processing unit 701 and a communication unit 702, where the processing unit 701 is configured to perform any step in the foregoing method embodiment, and when performing data transmission such as transmission, the communication unit 702 is selectively invoked to complete a corresponding operation.
The frequency adjustment device 700 of the central processing unit may further include a storage unit 703 for storing program codes and data. The processing unit 701 may be a processor, the communication unit 702 may be a wireless communication module, and the storage unit 703 may be a memory.
The processing unit 701 is specifically configured to:
Adjusting a default frequency upper limit to a first frequency upper limit according to the current equipment temperature, wherein the default frequency upper limit is an initial maximum working frequency of the central processing unit, the first frequency upper limit is used for enabling the working frequency of the central processing unit to be not higher than the first frequency upper limit, and the first frequency upper limit is lower than the default frequency upper limit;
If the current application scene is identified as a first scene with the user perception degree higher than a preset perception degree threshold, determining a second frequency upper limit meeting the current performance requirement, wherein the user perception degree is used for indicating the interaction degree of a user and equipment, and the second frequency upper limit is higher than the first frequency upper limit but not higher than the default frequency upper limit;
the first upper frequency limit is adjusted to the second upper frequency limit.
As can be seen, with the above method for adjusting frequency of a central processing unit and related apparatus, firstly, according to a current device temperature, a default upper frequency limit is adjusted to a first upper frequency limit, where the default upper frequency limit is an initial maximum operating frequency of the central processing unit, the first upper frequency limit is used to make the operating frequency of the central processing unit not higher than the first upper frequency limit, and the first upper frequency limit is lower than the default upper frequency limit; then, if the current application scene is identified as a first scene with the user perception degree higher than a preset perception degree threshold, determining a second frequency upper limit meeting the current performance requirement, wherein the user perception degree is used for indicating the interaction degree of a user and equipment, and the second frequency upper limit is higher than the first frequency upper limit but not higher than the default frequency upper limit; finally, the first upper frequency limit is adjusted to the second upper frequency limit. The frequency upper limit can be flexibly adjusted based on the current application scene on the basis of adjusting the frequency of the central processing unit according to the temperature, so that the user experience is greatly improved.
It should be noted that, the specific implementation of each operation may be described in the above-illustrated method embodiment, and the frequency adjusting device 700 of the central processing unit may be used to execute the above-described method embodiment of the present application, which is not described herein.
The embodiment of the application also provides a chip which comprises a processor, a memory and a computer program or instructions stored on the memory, wherein the processor executes the computer program or instructions to realize the steps described in the embodiment of the method.
The embodiment of the application also provides a chip module, which comprises a receiving and transmitting assembly and a chip, wherein the chip comprises a processor, a memory and a computer program or instructions stored on the memory, and the processor executes the computer program or instructions to realize the steps described in the embodiment of the method.
The embodiment of the present application also provides a computer storage medium storing a computer program for electronic data exchange, where the computer program causes a computer to execute some or all of the steps of any one of the methods described in the above method embodiments.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising an electronic device.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the application, wherein the principles and embodiments of the application are explained in detail using specific examples, the above examples being provided solely to facilitate the understanding of the method and core concepts of the application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A method for adjusting frequency of a central processing unit, the method comprising:
Adjusting a default frequency upper limit to a first frequency upper limit according to the current equipment temperature, wherein the default frequency upper limit is an initial maximum working frequency of the central processing unit, the first frequency upper limit is used for enabling the working frequency of the central processing unit to be not higher than the first frequency upper limit, and the first frequency upper limit is lower than the default frequency upper limit;
If the current application scene is identified as a first scene with the user perception degree higher than a preset perception degree threshold, determining a second frequency upper limit meeting the current performance requirement, wherein the user perception degree is used for indicating the interaction degree of a user and equipment, and the second frequency upper limit is higher than the first frequency upper limit but not higher than the default frequency upper limit;
the first upper frequency limit is adjusted to the second upper frequency limit.
2. The method according to claim 1, wherein the method further comprises:
If the current application scene is identified as a second scene with the user perception degree lower than or equal to the preset perception degree threshold, determining a first frequency lower limit meeting the current performance requirement, wherein the first frequency lower limit is used for enabling the working frequency of the central processing unit not to be lower than the first frequency lower limit, and the first frequency lower limit is higher than a default frequency lower limit but not higher than the first frequency upper limit;
The default lower frequency limit is adjusted to the first lower frequency limit.
3. The method of claim 2, wherein after the adjusting the default upper frequency limit to the first upper frequency limit based on the current device temperature, the method further comprises:
determining a user behavior type according to at least one of load data, frequency data and user interaction behavior with the device;
If the user behavior type is a user interface interaction type, determining that the user perceptibility is higher than the preset perceptibility threshold, wherein the current application scene is the first scene;
and if the user behavior type is a background interaction type, determining that the user perceptibility is lower than or equal to the preset perceptibility threshold, wherein the current application scene is the second scene.
4. A method according to claim 3, wherein said determining a user behavior type from at least one of load data, frequency data and user interaction with the device comprises:
If the interaction behavior of the user and the equipment is detected to belong to user interface interaction operation, determining that the user behavior type is the user interface interaction type, wherein the user interface interaction operation comprises at least one of voice interaction operation, triggering interaction operation and spaced interaction operation;
and if the interaction behavior of the user and the equipment is detected not to belong to user interface interaction operation, determining that the user behavior type is the background interaction type.
5. A method according to claim 3, wherein said determining a user behavior type from at least one of load data, frequency data and user interaction with the device comprises:
If the load data is detected to belong to a user interface interaction load, and/or if the frequency data is identified to be in accordance with a first frequency change state, determining that the user behavior type is the user interface interaction type;
and if the load data is detected to belong to a background load, and/or if the frequency data is identified to be in accordance with a second frequency change state, determining that the user behavior type is the background interaction type.
6. The method of claim 1, wherein said adjusting said first upper frequency limit to said second upper frequency limit comprises:
determining the current application scene as a first duration of the first scene;
and adjusting the first frequency upper limit to the second frequency upper limit in the first duration.
7. The method of claim 2, wherein after said adjusting said first upper frequency limit to said second upper frequency limit and after said adjusting said default lower frequency limit to said first lower frequency limit, said method further comprises:
And determining a target frequency according to the current performance requirement, and adjusting the central processing unit to the target frequency, wherein the target frequency is within the second frequency upper limit and the first frequency lower limit.
8. A frequency adjustment device for a central processing unit, the device comprising:
the temperature control unit is used for adjusting a default frequency upper limit to be a first frequency upper limit according to the current equipment temperature, wherein the default frequency upper limit is an initial maximum working frequency of the central processing unit, the first frequency upper limit is used for enabling the working frequency of the central processing unit not to be higher than the first frequency upper limit, and the first frequency upper limit is lower than the default frequency upper limit;
The frequency determining unit is used for determining a second frequency upper limit meeting the current performance requirement if the current application scene is identified as a first scene with the user perception degree higher than a preset perception degree threshold, wherein the user perception degree is used for indicating the interaction degree of a user and equipment, and the second frequency upper limit is higher than the first frequency upper limit but not higher than the default frequency upper limit;
and the frequency adjusting unit is used for adjusting the first frequency upper limit to the second frequency upper limit.
9. An electronic device, comprising: a processor, a memory, and one or more programs; the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1-7.
CN202211353204.4A 2022-10-31 2022-10-31 Frequency adjusting method and related device for central processing unit Pending CN117992206A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211353204.4A CN117992206A (en) 2022-10-31 2022-10-31 Frequency adjusting method and related device for central processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211353204.4A CN117992206A (en) 2022-10-31 2022-10-31 Frequency adjusting method and related device for central processing unit

Publications (1)

Publication Number Publication Date
CN117992206A true CN117992206A (en) 2024-05-07

Family

ID=90895937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211353204.4A Pending CN117992206A (en) 2022-10-31 2022-10-31 Frequency adjusting method and related device for central processing unit

Country Status (1)

Country Link
CN (1) CN117992206A (en)

Similar Documents

Publication Publication Date Title
EP3901756B1 (en) Electronic device including touch sensitive display and method for operating the same
US20140208328A1 (en) Method for terminal acceleration, terminal and storage medium
CN105302455B (en) A kind of interface operation method and terminal
CN106095022B (en) Control method and electronic equipment
US11537304B2 (en) Data verification method and apparatus, and storage medium
US10439412B2 (en) Method for eliminating interference of charger to touch screen, and mobile terminal
CN108920397B (en) Device identification method and device, storage medium and electronic device
CN104850321A (en) Terminal
WO2022001553A1 (en) Font adjustment method and apparatus, storage medium, and electronic device
CN109756568A (en) Processing method, equipment and the computer readable storage medium of file
CN104850398A (en) Control method for terminal screen
CN104572219A (en) Photographing mode switching method and photographing mode switching device
EP3522290A1 (en) Fast charging control method, fast charging control system, and terminal device
CN111984557A (en) Data processing method, device and system
CN107656677B (en) Method for adjusting position of application icon, storage medium and mobile terminal
CN111338628A (en) Component rendering method and device
US20200082130A1 (en) Dynamic screen filtering
CN105549857A (en) Control method for electronic terminal and electronic terminal
CN117992206A (en) Frequency adjusting method and related device for central processing unit
CN107357654B (en) Method and device for controlling over-frequency working state of CPU
CN111081197A (en) Brightness parameter synchronization method, related device and readable storage medium
CN114978207A (en) Antenna tuning method and electronic device
CN110597492B (en) Module calling method and related products
CN112988105A (en) Playing state control method and device, electronic equipment and storage medium
CN108958829B (en) Pre-loaded resource control method, device, storage medium and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination