Movatterモバイル変換


[0]ホーム

URL:


CN114442792A - Method and device for adjusting operating frequency of processor and storage medium - Google Patents

Method and device for adjusting operating frequency of processor and storage medium
Download PDF

Info

Publication number
CN114442792A
CN114442792ACN202210122895.0ACN202210122895ACN114442792ACN 114442792 ACN114442792 ACN 114442792ACN 202210122895 ACN202210122895 ACN 202210122895ACN 114442792 ACN114442792 ACN 114442792A
Authority
CN
China
Prior art keywords
processor
operating frequency
resource
refresh
duration
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
CN202210122895.0A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN202210122895.0ApriorityCriticalpatent/CN114442792A/en
Publication of CN114442792ApublicationCriticalpatent/CN114442792A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The present disclosure relates to a method, an apparatus, and a storage medium for adjusting an operating frequency of a processor, wherein the method for adjusting the operating frequency includes: determining historical consumption resources of the processor, wherein the historical consumption resources are used for representing resources required by the processor for rendering a preset number of image frames; determining a reference refreshing resource of a display carrying a processor, wherein the reference refreshing resource is used for representing a resource required by the display for refreshing a frame of image; according to the historical consumed resources and the reference refreshing resources, the requirement of the next moment on the operating frequency of the processor can be predicted, and then the operating frequency of the processor is correspondingly adjusted, so that the problem that the power consumption is increased because the processor still works at a higher operating frequency when the higher operating frequency of the processor is not needed is solved on the premise of ensuring the performance of the display; in addition, the purpose of rapidly reducing the operating frequency of the processor can be realized under the condition that the operating frequency of the processor needs to be reduced, and the power consumption is further saved.

Description

Translated fromChinese
处理器的运行频率调整方法、装置及存储介质Method, device and storage medium for adjusting operating frequency of processor

技术领域technical field

本公开涉及电子信息技术领域,尤其涉及一种处理器的运行频率调整方法、装置及存储介质。The present disclosure relates to the technical field of electronic information, and in particular, to a method, device and storage medium for adjusting the operating frequency of a processor.

背景技术Background technique

随着互联网的普及与快速发展,服务器、智能手机等电子设备在生活中的作用越来越高。为提升用户体验,需要处理器的处理能力较高,进而要求处理器以较高的运行频率进行工作,但由于某些场景不需要处理器较高的处理能力,而若处理器仍维持较高的运行频率工作,将给电子设备带来了较大的功耗负担,造成处理器产生不必要的功耗。With the popularization and rapid development of the Internet, electronic devices such as servers and smart phones play an increasingly important role in life. In order to improve the user experience, the processing power of the processor is required to be high, and the processor is required to work at a high operating frequency. However, because some scenarios do not require high processing power of the processor, if the processor remains high The operation of the operating frequency will bring a large power consumption burden to the electronic equipment, resulting in unnecessary power consumption of the processor.

发明内容SUMMARY OF THE INVENTION

为克服相关技术中存在的问题,本公开提供一种处理器的运行频率调整方法、装置及存储介质。In order to overcome the problems existing in the related art, the present disclosure provides a method, device and storage medium for adjusting the operating frequency of a processor.

根据本公开实施例的第一方面,提供一种处理器的运行频率调整方法,包括:According to a first aspect of the embodiments of the present disclosure, a method for adjusting a running frequency of a processor is provided, including:

确定处理器的历史消耗资源,所述历史消耗资源用于表征所述处理器渲染预设数量图像帧所需要的资源;determining historical consumption resources of the processor, where the historical consumption resources are used to represent the resources required by the processor to render a preset number of image frames;

确定搭载所述处理器的显示器的基准刷新资源,所述基准刷新资源用于表征所述显示器刷新一帧图像所需要的资源;determining a reference refresh resource of the display equipped with the processor, where the reference refresh resource is used to represent the resource required by the display to refresh one frame of image;

根据所述历史消耗资源和所述基准刷新资源,调整所述处理器的运行频率。The operating frequency of the processor is adjusted according to the historical consumption resource and the benchmark refresh resource.

可选地,所述历史消耗资源为所述处理器历史连续渲染所述预设数量图像帧的实际时长,所述基准刷新资源为所述显示器刷新一帧图像的基准时长,所述根据所述历史消耗资源和所述基准刷新资源,调整所述处理器的运行频率,包括:Optionally, the historical consumption resource is the actual duration for which the processor has historically continuously rendered the preset number of image frames, and the reference refresh resource is the reference duration for the display to refresh one frame of image. The historical consumption resources and the benchmark refresh resources are adjusted to adjust the operating frequency of the processor, including:

根据所述基准时长和所述预设数量图像帧,确定所述显示器刷新所述预设数量图像帧的刷新时长;determining the refresh duration for the display to refresh the preset number of image frames according to the reference duration and the preset number of image frames;

根据所述实际时长和所述刷新时长,调整所述处理器的运行频率。The operating frequency of the processor is adjusted according to the actual duration and the refresh duration.

可选地,所述确定搭载所述处理器的显示器的基准刷新资源,包括:Optionally, the determining the reference refresh resource of the display equipped with the processor includes:

获取当前刷新率;Get the current refresh rate;

根据所述当前刷新率,确定所述基准时长;determining the reference duration according to the current refresh rate;

将所述基准时长确定为搭载所述处理器的显示器的基准刷新资源。The reference duration is determined as a reference refresh resource of the display equipped with the processor.

可选地,所述根据所述实际时长和所述刷新时长,调整所述处理器的运行频率,包括:Optionally, adjusting the operating frequency of the processor according to the actual duration and the refresh duration includes:

在所述实际时长等于所述刷新时长的情况下,保持所述处理器的运行频率;In the case that the actual duration is equal to the refresh duration, maintaining the running frequency of the processor;

在所述实际时长大于所述刷新时长的情况下,提高所述处理器的运行频率;When the actual duration is greater than the refresh duration, increasing the operating frequency of the processor;

在所述实际时长小于所述刷新时长的情况下,降低所述处理器的运行频率。In the case that the actual duration is less than the refresh duration, the operating frequency of the processor is reduced.

可选地,所述历史消耗资源为所述处理器历史连续渲染所述预设数量图像帧的实际时长,所述基准刷新资源为所述显示器刷新一帧图像的基准时长,所述根据所述历史消耗资源和所述基准刷新资源,调整所述处理器的运行频率,包括:Optionally, the historical consumption resource is the actual duration for which the processor has historically continuously rendered the preset number of image frames, and the reference refresh resource is the reference duration for the display to refresh one frame of image. The historical consumption resources and the benchmark refresh resources are adjusted to adjust the operating frequency of the processor, including:

根据所述实际时长和所述基准时长,确定目标帧数;Determine the target frame number according to the actual duration and the reference duration;

在所述目标帧数大于第一帧数且小于第二帧数的情况下,保持所述处理器的运行频率,其中,所述第一帧数小于所述第二帧数;In the case that the target frame number is greater than the first frame number and less than the second frame number, maintaining the running frequency of the processor, wherein the first frame number is less than the second frame number;

在所述目标帧数小于或等于所述第一帧数的情况下,降低所述处理器的运行频率;In the case that the target frame number is less than or equal to the first frame number, reducing the operating frequency of the processor;

在所述目标帧数大于或等于所述第二帧数的情况下,提高所述处理器的运行频率。When the target number of frames is greater than or equal to the second number of frames, the operating frequency of the processor is increased.

根据本公开实施例的第二方面,提供一种处理器的运行频率调整装置,包括:According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for adjusting a running frequency of a processor, including:

第一确定模块,被配置为确定处理器的历史消耗资源,所述历史消耗资源用于表征所述处理器渲染预设数量图像帧所需要的资源;a first determining module, configured to determine historical consumption resources of the processor, where the historical consumption resources are used to represent the resources required by the processor to render a preset number of image frames;

第二确定模块,被配置为确定搭载所述处理器的显示器的基准刷新资源,所述基准刷新资源用于表征所述显示器刷新一帧图像所需要的资源;a second determining module configured to determine a reference refresh resource of the display equipped with the processor, where the reference refresh resource is used to represent the resource required by the display to refresh a frame of image;

调整模块,被配置为根据所述历史消耗资源和所述基准刷新资源,调整所述处理器的运行频率。The adjustment module is configured to adjust the operating frequency of the processor according to the historical consumption resources and the benchmark refresh resources.

可选地,所述历史消耗资源为所述处理器历史连续渲染所述预设数量图像帧的实际时长,所述基准刷新资源为所述显示器刷新一帧图像的基准时长,所述调整模块包括:Optionally, the historical consumption resource is the actual duration for the processor to continuously render the preset number of image frames in history, and the reference refresh resource is the reference duration for the display to refresh one frame of image, and the adjustment module includes: :

第一确定子模块,被配置为根据所述基准时长和所述预设数量图像帧,确定所述显示器刷新所述预设数量图像帧的刷新时长;a first determination submodule, configured to determine the refresh duration for the display to refresh the preset number of image frames according to the reference duration and the preset number of image frames;

第一调整子模块,被配置为根据所述实际时长和所述刷新时长,调整所述处理器的运行频率。The first adjustment submodule is configured to adjust the operating frequency of the processor according to the actual duration and the refresh duration.

可选地,所述第一调整子模块具体被配置为在所述实际时长等于所述刷新时长的情况下,保持所述处理器的运行频率;在所述实际时长大于所述刷新时长的情况下,提高所述处理器的运行频率;在所述实际时长小于所述刷新时长的情况下,降低所述处理器的运行频率。Optionally, the first adjustment sub-module is specifically configured to maintain the running frequency of the processor when the actual duration is equal to the refresh duration; and when the actual duration is greater than the refresh duration Under the condition that the actual duration is less than the refresh duration, the running frequency of the processor is reduced.

可选地,所述历史消耗资源为所述处理器历史连续所述渲染预设数量图像帧的实际时长,所述基准刷新资源为所述显示器刷新一帧图像的基准时长,所述调整模块包括:Optionally, the historical consumption resource is the actual duration of continuously rendering the preset number of image frames in the history of the processor, and the benchmark refresh resource is the benchmark duration for the display to refresh one frame of image, and the adjustment module includes: :

第四确定子模块,被配置为根据所述实际时长和所述基准时长,确定目标帧数;a fourth determination submodule, configured to determine the target frame number according to the actual duration and the reference duration;

第二调整子模块,被配置为在所述目标帧数大于第一帧数且小于第二帧数的情况下,保持所述处理器的运行频率,其中,所述第一帧数小于所述第二帧数;The second adjustment submodule is configured to maintain the running frequency of the processor when the target frame number is greater than a first frame number and less than a second frame number, wherein the first frame number is less than the Second frame number;

第三调整子模块,被配置为在所述目标帧数小于或等于所述第一帧数的情况下,降低所述处理器的运行频率;a third adjustment submodule, configured to reduce the operating frequency of the processor when the target frame number is less than or equal to the first frame number;

第四调整子模块,被配置为在所述目标帧数大于或等于所述第二帧数的情况下,提高所述处理器的运行频率。The fourth adjustment sub-module is configured to increase the operating frequency of the processor when the target frame number is greater than or equal to the second frame number.

根据本公开实施例的第三方面,提供一种处理器的运行频率调整装置,包括:According to a third aspect of the embodiments of the present disclosure, an apparatus for adjusting a running frequency of a processor is provided, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:wherein the processor is configured to:

确定处理器的历史消耗资源,所述历史消耗资源用于表征所述处理器渲染预设数量图像帧所需要的资源;determining historical consumption resources of the processor, where the historical consumption resources are used to represent the resources required by the processor to render a preset number of image frames;

确定搭载所述处理器的显示器的基准刷新资源,所述基准刷新资源用于表征所述显示器刷新一帧图像所需要的资源;determining a reference refresh resource of the display equipped with the processor, where the reference refresh resource is used to represent the resource required by the display to refresh one frame of image;

根据所述历史消耗资源和所述基准刷新资源,调整所述处理器的运行频率。The operating frequency of the processor is adjusted according to the historical consumption resource and the benchmark refresh resource.

根据本公开实施例的第四方面,提供一种计算机可读存储介质,其上存储有计算机程序指令,该程序指令被处理器执行时实现本公开第一方面所提供的运行频率调整方法的步骤。According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which computer program instructions are stored, and when the program instructions are executed by a processor, implement the steps of the operating frequency adjustment method provided in the first aspect of the present disclosure .

本公开的实施例提供的技术方案可以包括以下有益效果:确定处理器的历史消耗资源,历史消耗资源用于表征处理器渲染预设数量图像帧所需要的资源;确定搭载处理器的显示器的基准刷新资源,基准刷新资源用于表征显示器刷新一帧图像所需要的资源;根据历史消耗资源和基准刷新资源,可以预测下一时刻对处理器运行频率的需求,进而相应地调整处理器的运行频率,在保证显示器的性能的前提下,避免在无需处理器较高运行频率时处理器仍以较高运行频率工作而增加功耗的问题;此外,基于处理器渲染图像帧所消耗的资源来预测是否调整处理器的运行频率,可以在需要降低处理器的运行频率的情况下实现快速降低处理器的运行频率的目的,进一步节省功耗。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: determining historical consumption resources of the processor, which are used to characterize the resources required by the processor to render a preset number of image frames; determining the benchmark of the display equipped with the processor Refresh resources, benchmark refresh resources are used to characterize the resources required by the display to refresh a frame of image; according to historical consumption resources and benchmark refresh resources, it is possible to predict the demand for the operating frequency of the processor at the next moment, and then adjust the operating frequency of the processor accordingly , under the premise of ensuring the performance of the display, to avoid the problem that the processor still operates at a higher operating frequency and increases power consumption when the processor does not need a higher operating frequency; in addition, based on the resources consumed by the processor to render image frames to predict Whether to adjust the operating frequency of the processor can achieve the purpose of rapidly reducing the operating frequency of the processor under the condition that the operating frequency of the processor needs to be reduced, and further save power consumption.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的一种处理器的运行频率调整方法的流程图。Fig. 1 is a flow chart of a method for adjusting the operating frequency of a processor according to an exemplary embodiment.

图2是根据一示例性实施例示出的一种调整处理器的运行频率的示意图。Fig. 2 is a schematic diagram of adjusting the operating frequency of a processor according to an exemplary embodiment.

图3是根据一示例性实施例示出的一种处理器的运行频率调整装置的框图。Fig. 3 is a block diagram of an apparatus for adjusting the operating frequency of a processor according to an exemplary embodiment.

图4是根据一示例性实施例示出的一种处理器的运行频率调整装置的框图。Fig. 4 is a block diagram of an apparatus for adjusting the operating frequency of a processor according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.

首先,需要说明的是,处理器的运行频率的高低表征处理器的处理能力的强弱,处理器的运行频率越高,处理器的处理能力越强。正如背景技术所言,由于某些场景不需要处理器较高的处理能力,而若处理器持续以较高的运行频率工作,将给电子设备带来了较大的功耗负担,特别是对功耗敏感的智能手机等移动类电子设备而言,功耗高低直接影响移动类电子设备的电量,因此,如何降低移动类电子设备的功耗就显得尤其重要,相对应地,为避免出现掉帧造成画面卡顿的情况,如何提高电子设备的运行频率以满足显示器刷新率的需要也至关重要。在相关技术中,EAS(Energy Aware Scheduling,能量感知调度)调度器,是基于任务的负载情况来实现处理器的运行频率的调整,该任务理解为处理器上的线程,内核根据任务在处理器中的运行时间来计算任务负载,没有与帧时间关联,导致计算的任务负载会偏高,此时可能已经处于轻载的交互场景,因此,导致处理器在已经处于轻载的交互场景的情况下运行频率仍会处于高频的情况,但轻载的交互场景无需处理器维持高频运行,因此,基于任务的负载情况来对处理器的运行频率进行调整的方法其实时性差,存在降频反应慢的问题,这对功耗敏感的移动类电子设备而言显然是不适用的。First, it should be noted that the level of the operating frequency of the processor represents the strength of the processing capability of the processor, and the higher the operating frequency of the processor, the stronger the processing capability of the processor. As mentioned in the background art, since some scenarios do not require high processing power of the processor, if the processor continues to work at a high operating frequency, it will bring a greater burden of power consumption to electronic devices, especially for For mobile electronic devices such as smart phones that are sensitive to power consumption, the power consumption directly affects the power of mobile electronic devices. Therefore, how to reduce the power consumption of mobile electronic devices is particularly important. When the frame causes the picture to freeze, how to increase the operating frequency of the electronic device to meet the needs of the display refresh rate is also crucial. In the related art, the EAS (Energy Aware Scheduling, Energy Aware Scheduling) scheduler adjusts the operating frequency of the processor based on the load of the task. The task is understood as a thread on the processor. It is not related to the frame time, resulting in a high computing task load. At this time, it may already be in a light-load interactive scene. Therefore, the processor is already in a light-load interactive scene. The operating frequency will still be at high frequency, but the interactive scenario of light load does not require the processor to maintain high-frequency operation. Therefore, the method of adjusting the operating frequency of the processor based on the task load has poor real-time performance, and there is a frequency reduction. The problem of slow response is obviously not applicable to power-sensitive mobile electronic devices.

有鉴于此,本公开实施例提供了一种处理器的运行频率调整方法、装置及存储介质。In view of this, embodiments of the present disclosure provide a method, a device, and a storage medium for adjusting the operating frequency of a processor.

图1是根据一示例性实施例示出的一种处理器的运行频率调整方法的流程图,如图1所示,该处理器的运行频率调整方法可以用于智能手机、平板电脑等移动类终端的电子设备中,包括以下步骤。FIG. 1 is a flowchart of a method for adjusting the operating frequency of a processor according to an exemplary embodiment. As shown in FIG. 1 , the method for adjusting the operating frequency of a processor can be used for mobile terminals such as smart phones and tablet computers. The electronic equipment includes the following steps.

在步骤S101中,确定处理器的历史消耗资源,历史消耗资源用于表征处理器渲染预设数量图像帧所需要的资源。In step S101, the historical consumption resources of the processor are determined, and the historical consumption resources are used to represent the resources required by the processor to render a preset number of image frames.

在一些实施例中,处理器可以是中央处理器,也可以是图像处理器,本实施例在此不作限定。In some embodiments, the processor may be a central processing unit or an image processor, which is not limited in this embodiment.

需要说明的是,处理器的运行频率调整方法可以应用于电子设备的交互场景,例如需要处理器运行频率较高的重载交互场景,例如游戏交互场景、直播场景等;再例如需要处理器运行频率不高的轻载交互场景,例如网页浏览场景、聊天场景等。It should be noted that the method for adjusting the operating frequency of the processor can be applied to interactive scenarios of electronic devices, such as heavy-duty interactive scenarios that require a high processor operating frequency, such as game interactive scenarios, live broadcast scenarios, etc.; Infrequent light-load interaction scenarios, such as web browsing scenarios, chat scenarios, etc.

应当说明的是,渲染是一种对需要在显示器上进行显示的图像帧的内容进行处理的过程。在一些实施例中,处理器渲染一帧的时长可以理解为处理器渲染一帧所消耗的资源,因此,历史消耗资源可以是一种时长资源,则历史消耗资源可以是处理器历史连续渲染所述预设数量图像帧的实际时长,在此情况下,可以通过以下方式确定处理器的历史消耗资源:获取处理器历史连续渲染预设数量图像帧的实际时长;将实际时长确定为处理器的历史消耗资源。It should be noted that rendering is a process of processing the content of an image frame that needs to be displayed on a display. In some embodiments, the duration of rendering a frame by the processor can be understood as the resource consumed by the processor to render a frame. Therefore, the historical consumption resource can be a duration resource, and the historical consumption resource can be the historical continuous rendering of the processor. In this case, the historical consumption resources of the processor can be determined in the following ways: obtain the actual duration of the processor’s historical continuous rendering of the preset number of image frames; determine the actual duration as the processor’s actual duration. History consumes resources.

示例地,以预设数量图像帧是5帧,该5帧为处理器连续渲染的5帧,且处理器渲染每帧所需要的时长分别为时长1、时长2、时长3、时长4和时长5为例,在此情况下,时长1、时长2、时长3、时长4和时长5之和为实际时长,则历史消耗资源为时长1、时长2、时长3、时长4和时长5之和。For example, the preset number of image frames is 5 frames, the 5 frames are 5 frames continuously rendered by the processor, and the duration required by the processor to render each frame isduration 1, duration 2,duration 3,duration 4 and duration respectively. 5 For example, in this case, the sum ofduration 1, duration 2,duration 3,duration 4 andduration 5 is the actual duration, then the historical resource consumption isduration 1, duration 2,duration 3,duration 4 andduration 5 sum .

在步骤S102中,确定搭载处理器的显示器的基准刷新资源,基准刷新资源用于表征显示器刷新一帧图像所需要的资源。In step S102, a reference refresh resource of the display equipped with the processor is determined, and the reference refresh resource is used to represent the resource required by the display to refresh one frame of image.

在一些实施例中,显示器刷新显示一帧的时长可以理解为显示器刷新一帧图像所需要的资源,因此,基准刷新资源可以是一种时长资源,则基准刷新资源可以是显示器刷新一帧图像的基准时长,在此情况下,可以通过以下方式确定搭载处理器的显示器的基准刷新资源:获取当前刷新率;根据当前刷新率,确定基准时长;将基准时长确定为搭载处理器的显示器的基准刷新资源。In some embodiments, the duration for the display to refresh and display one frame can be understood as the resources required by the display to refresh one frame of image. Therefore, the reference refresh resource may be a duration resource, and the reference refresh resource may be the time for the display to refresh one frame of image. The benchmark duration, in this case, the benchmark refresh resource of the display equipped with the processor can be determined in the following ways: obtain the current refresh rate; determine the benchmark duration according to the current refresh rate; determine the benchmark duration as the benchmark refresh of the display equipped with the processor resource.

在一些实施例中,显示器的当前刷新率是可以设置的。根据设置的值可以确定相应的显示器的当前刷新率。示例地,对于游戏交互场景而言,需要较高的刷新率以避免游戏界面卡顿,显示器的当前刷新率可以是60帧/秒,其表示电子设备的显示器在1秒钟内可以刷新显示60次新图像。示例地,以显示器的当前刷新率是60帧/秒为例,基准刷新时长为1/60。In some embodiments, the current refresh rate of the display can be set. The current refresh rate of the corresponding display can be determined according to the set value. For example, for a game interaction scenario, a higher refresh rate is required to avoid the game interface being stuck, and the current refresh rate of the display may be 60 frames/second, which means that the display of the electronic device can refresh the display for 60 frames per second. next new image. For example, taking the current refresh rate of the display as 60 frames/second as an example, the reference refresh duration is 1/60.

在步骤S103中,根据历史消耗资源和基准刷新资源,调整处理器的运行频率。In step S103, the operating frequency of the processor is adjusted according to historical consumption resources and benchmark refresh resources.

需要说明的是,处理器和显示器联合工作以实现在电子设备的屏幕上进行画面显示。处理器进行帧画面的渲染,显示器用于将处理器渲染的帧画面刷新显示在屏幕上。一般来讲,显示器1秒中能够刷新显示的帧画面数量(即刷新率)与处理器在1秒钟能够渲染帧画面数量有关,而处理器在1秒钟能够渲染帧画面数量与其自身处理能力有关,进而影响处理器的处理能力的因素之一可以是处理器的运行频率。在显示分辨率不变的情况下,显示器的刷新率越高,对处理器的处理能力要求也就越高。示例地,对于一固定的显示分辨率,显示器刷新率要达到30帧/秒与显示器刷新率要达到50帧/秒相比较而言,显示器刷新率要达到50帧/秒需要处理器的处理能力更高,也即是需要处理器的运行频率更高。为了同时满足电子设备的UI性能和避免不必要的功耗,需要使处理器的运行频率与显示器的刷新率相匹配,换而言之,若需要达到显示器当前的刷新率,则前提是需要处理器相应地渲染好与该刷新率匹配的图像帧数,例如,若当前刷新率为30帧/秒,则需要处理器在1秒钟内渲染好30帧图像。因此,可以根据刷新率和运行频率来调整处理器的运行频率。It should be noted that, the processor and the display work together to realize picture display on the screen of the electronic device. The processor performs frame rendering, and the display is used to refresh and display the frame rendered by the processor on the screen. Generally speaking, the number of frames that the display can refresh and display in 1 second (that is, the refresh rate) is related to the number of frames that the processor can render in 1 second, and the number of frames that the processor can render in 1 second is related to its own processing capacity. One of the factors that, in turn, affects the processing power of the processor may be the operating frequency of the processor. Under the condition that the display resolution remains unchanged, the higher the refresh rate of the display, the higher the processing power requirements of the processor. For example, for a fixed display resolution, a display refresh rate of 30 frames per second is compared to a display refresh rate of 50 frames per second, which requires processor processing power to achieve a display refresh rate of 50 frames per second. Higher, that is, requires the processor to run at a higher frequency. In order to meet the UI performance of electronic devices and avoid unnecessary power consumption at the same time, it is necessary to match the operating frequency of the processor with the refresh rate of the display. The processor renders the number of image frames that match the refresh rate accordingly. For example, if the current refresh rate is 30 frames per second, the processor needs to render 30 frames of images within 1 second. Therefore, the operating frequency of the processor can be adjusted according to the refresh rate and operating frequency.

基于上述前提,在一些实施例中,历史消耗资源为处理器历史连续渲染预设数量图像帧的实际时长,基准刷新资源为显示器刷新一帧图像的基准时长,在此情况下,步骤S103可以包括:根据基准时长和预设数量图像帧,确定显示器刷新预设数量图像帧的刷新时长;根据实际时长和刷新时长,调整处理器的运行频率。Based on the above premise, in some embodiments, the historical consumption resource is the actual duration for the processor to continuously render a preset number of image frames in history, and the reference refresh resource is the reference duration for the display to refresh one frame of image. In this case, step S103 may include: : Determine the refresh duration for the display to refresh the preset number of image frames according to the reference duration and the preset number of image frames; adjust the running frequency of the processor according to the actual duration and the refresh duration.

需要说明的是,基准时长是显示器刷新一帧图像所需要的时长。根据预设数量图像帧和基准时长,可以确定显示器刷新预设数量图像帧所需要的时长。It should be noted that the reference duration is the duration required for the display to refresh one frame of image. According to the preset number of image frames and the reference duration, the duration required for the display to refresh the preset number of image frames can be determined.

由于实际时长和刷新时长是处理器和显示器处理相同帧数的所需要的时长,因此,对实际时长和刷新时长进行对比,可以确定处理器当前的运行频率是否与显示器的刷新频率相匹配。具体的对比方式可以是:在实际时长等于刷新时长的情况下,保持处理器的运行频率;在实际时长大于刷新时长的情况下,提高处理器的运行频率;在实际时长小于刷新时长的情况下,降低处理器的运行频率。在实际时长等于刷新时长的情况下,表征处理器的运行频率与显示器的刷新率相匹配,运行频率无需调整;在实际时长大于刷新时长的情况下,表明处理器的承担的历史帧负载偏高,需要提高处理器的运行频率,以确保UI性能,避免掉帧等情况;在实际时长小于刷新时长的情况下,表明处理器的承担的历史帧负载偏低,可以降低处理器的运行频率,以最大程度降低处理器的功耗。需要说明的是,历史帧负载的高低表征渲染预设数量图像帧所需要消耗的资源的大小,历史帧负载越高,渲染预设数量图像帧所需要消耗的资源的越大。Since the actual duration and the refresh duration are the durations required for the processor and the display to process the same number of frames, by comparing the actual duration and the refresh duration, it can be determined whether the current operating frequency of the processor matches the refresh frequency of the display. The specific comparison method can be: when the actual duration is equal to the refresh duration, keep the running frequency of the processor; when the actual duration is greater than the refresh duration, increase the running frequency of the processor; when the actual duration is less than the refresh duration , reduce the operating frequency of the processor. When the actual duration is equal to the refresh duration, it means that the running frequency of the processor matches the refresh rate of the display, and the running frequency does not need to be adjusted; when the actual duration is greater than the refresh duration, it indicates that the historical frame load borne by the processor is too high , it is necessary to increase the running frequency of the processor to ensure UI performance and avoid dropped frames; if the actual duration is less than the refresh duration, it indicates that the historical frame load borne by the processor is low, and the running frequency of the processor can be reduced. to minimize the power consumption of the processor. It should be noted that the level of the historical frame load represents the size of the resources needed to render the preset number of image frames. The higher the historical frame load, the greater the resources needed to render the preset number of image frames.

通过上述方式,通过比较实际时长和刷新时长的大小,来预测处理器的运行频率与处理器目前所承担的帧负载是否相匹配,以在确保UI性能的同时降低处理器产生的功耗;此外,基于处理器渲染图像帧所消耗的资源来预测是否调整处理器的运行频率,可以在需要降低处理器的运行频率的情况下实现快速降低处理器的运行频率的目的,进一步节省功耗。Through the above method, by comparing the actual duration and the refresh duration, it is predicted whether the running frequency of the processor matches the frame load currently borne by the processor, so as to reduce the power consumption generated by the processor while ensuring UI performance; , predicting whether to adjust the running frequency of the processor based on the resources consumed by the processor to render the image frame, can achieve the purpose of rapidly reducing the running frequency of the processor and further save power consumption when the running frequency of the processor needs to be reduced.

在一些实施例中,历史消耗资源为处理器历史连续渲染预设数量图像帧的实际时长,基准刷新资源为显示器刷新一帧图像的基准时长,在此情况下,步骤S103可以包括:根据实际时长和基准时长,确定目标帧数;在目标帧数大于第一帧数且小于第二帧数的情况下,保持处理器的运行频率,其中,第一帧数小于第二帧数;在目标帧数小于或等于第一帧数的情况下,降低处理器的运行频率;在目标帧数大于或等于第二帧数的情况下,提高处理器的运行频率。In some embodiments, the historical consumption resource is the actual duration for the processor to continuously render a preset number of image frames in history, and the reference refresh resource is the reference duration for the display to refresh one frame of image. In this case, step S103 may include: according to the actual duration and the reference duration to determine the target frame number; when the target frame number is greater than the first frame number and less than the second frame number, keep the running frequency of the processor, where the first frame number is less than the second frame number; When the number of frames is less than or equal to the first number of frames, the operating frequency of the processor is reduced; when the number of target frames is greater than or equal to the second number of frames, the operating frequency of the processor is increased.

需要说明的是,目标帧数用于表征在实际时长内显示器在当前刷新率下能够刷新显示的图像帧的帧数。目标帧数可以通过下式计算:It should be noted that the target frame number is used to represent the frame number of image frames that the display can refresh and display at the current refresh rate within the actual duration. The target frame number can be calculated by the following formula:

sum.frame.history=x*frametime;sum.frame.history = x*frametime;

其中,sum.frame.history为实际时长,frametime为基准时长,x为目标帧数,frametime=1/target_fps,target_fps为显示器的当前刷新率。Wherein, sum.frame.history is the actual duration, frametime is the reference duration, x is the target frame number, frametime=1/target_fps, and target_fps is the current refresh rate of the display.

在目标帧数大于第一帧数且小于第二帧数的情况下,此时认为处理器的历史帧负载不高,且依据显示器的当前刷新率和处理器的运行频率不会出现掉帧等情况,因此无需调整处理器的运行频率;在目标帧数小于等于第一帧数的情况下,此时认为处理器的历史帧负载偏低,此时可以降低处理器的运行频率,处理器以降低后的运行频率也可以满足当前刷新率,不会出现掉帧等情况;在目标帧数大于等于第二帧数的情况下,此时认为处理器的历史帧负载偏高,为达到显示器的当前刷新率,不出现掉帧的情况,需要处理器能具备更快的处理能力,则相应地可以提高处理器的运行频率。When the target frame number is greater than the first frame number and less than the second frame number, it is considered that the historical frame load of the processor is not high, and there will be no frame drop according to the current refresh rate of the display and the operating frequency of the processor, etc. Therefore, there is no need to adjust the running frequency of the processor; if the target frame number is less than or equal to the first frame number, the historical frame load of the processor is considered to be low at this time, and the running frequency of the processor can be reduced at this time. The reduced operating frequency can also meet the current refresh rate, and there will be no frame drop. At the current refresh rate, there is no frame drop, and the processor needs to have faster processing capabilities, so the operating frequency of the processor can be increased accordingly.

在一些实施例中,第一帧数和第二帧数可以根据实际情况进行设定,本实施例在此不做赘述。In some embodiments, the first number of frames and the second number of frames may be set according to actual conditions, which will not be repeated in this embodiment.

在一些实施例中,可以设置处理器不同档次的运行频率,每个档次对应的运行频率是不同的,根据不同档次的运行频率实现运行频率的降低或提高。示例地,处理器的运行频率设置有三个档次,分别为A1、A2和A3,其中,A1、A2和A3对应的运行频率的大小关系为:A1>A2>A3,在处理器当前的运行频率为A2对应的运行频率且在确定降低处理器的运行频率的情况下,可以将处理器的运行频率降低为A1对应的运行频率;在处理器当前的运行频率为A2对应的运行频率且在确定提高处理器的运行频率的情况下,可以将处理器的运行频率提高为A3对应的运行频率。In some embodiments, the operating frequencies of different grades of the processor can be set, the operating frequencies corresponding to each grade are different, and the operating frequencies can be reduced or increased according to the operating frequencies of different grades. For example, the operating frequency of the processor is set to three grades, which are A1, A2, and A3, respectively. The relationship between the operating frequencies corresponding to A1, A2, and A3 is: A1>A2>A3. At the current operating frequency of the processor It is the operating frequency corresponding to A2 and in the case of determining to reduce the operating frequency of the processor, the operating frequency of the processor can be reduced to the operating frequency corresponding to A1; when the current operating frequency of the processor is the operating frequency corresponding to A2 and after determining In the case of increasing the operating frequency of the processor, the operating frequency of the processor can be increased to the operating frequency corresponding to the A3.

图2是根据一示例性实施例示出的一种调整处理器的运行频率的示意图。参照图2,在图2中,frametime为基准时长,target_fps为显示器的当前刷新率,4.95为第一帧数,5.31为第二帧数。历史帧序列为处理器渲染的各历史帧,分别为序号3、序号3、序号4、序号7、序号1和序号6,历史预设数量图像帧为5帧,分别为序号3、序号4、序号7、序号1和序号6,其中序号6可以理解为处理器当前正在渲染的帧,在处理器处理序号6的图像帧时,确定处理器渲染的包括序号6在内以及序号3、序号4、序号7、序号1共5帧的实际时长。根据图2所示,在实际时长与基准时长的比值小于等于4.95的情况下,降低处理器的运行频率;在实际时长与基准时长的比值大于等于5.31的情况下,提高处理器的运行频率;在实际时长与基准时长的比值大于4.95且小于5.31的情况下,保持处理器的运行频率不变。Fig. 2 is a schematic diagram of adjusting the operating frequency of a processor according to an exemplary embodiment. Referring to FIG. 2 , in FIG. 2 , frametime is the reference duration, target_fps is the current refresh rate of the display, 4.95 is the first frame number, and 5.31 is the second frame number. The historical frame sequence is each historical frame rendered by the processor, which areserial number 3,serial number 3,serial number 4,serial number 7,serial number 1, andserial number 6. The historical preset number of image frames is 5 frames, which areserial number 3,serial number 4,Sequence number 7,sequence number 1 andsequence number 6, wheresequence number 6 can be understood as the frame currently being rendered by the processor. When the processor processes the image frame ofsequence number 6, it is determined thatsequence number 6,sequence number 3 andsequence number 4 are rendered by the processor. , No. 7, No. 1, the actual duration of a total of 5 frames. As shown in Figure 2, when the ratio of the actual duration to the reference duration is less than or equal to 4.95, reduce the running frequency of the processor; when the ratio of the actual duration to the benchmark duration is greater than or equal to 5.31, increase the running frequency of the processor; When the ratio of the actual duration to the reference duration is greater than 4.95 and less than 5.31, keep the running frequency of the processor unchanged.

通过上述方式,相较于利用实际时长与刷新时长的比较方式而言,由于第一帧数和第二帧数的设置可以做到更为精细化,因此,通过计算目标帧数,并与第一帧数和第二帧数相比较的方式,可以准确判断是否调整处理器的运行频率,以此在最大程度确保UI性能的前提下节省设备功耗。Through the above method, compared with the comparison method using the actual duration and the refresh duration, the setting of the first frame number and the second frame number can be more refined. Therefore, by calculating the target frame number and comparing it with the first frame number By comparing the number of one frame with the number of second frames, it can be accurately determined whether to adjust the operating frequency of the processor, so as to save the power consumption of the device on the premise of ensuring the UI performance to the greatest extent.

图3是根据一示例性实施例示出的一种处理器的运行频率调整装置的框图。参照图3,该运行频率调整装置包括第一确定模块301,第二确定模块302和调整模块303。Fig. 3 is a block diagram of an apparatus for adjusting the operating frequency of a processor according to an exemplary embodiment. Referring to FIG. 3 , the operating frequency adjustment device includes afirst determination module 301 , asecond determination module 302 and anadjustment module 303 .

该第一确定模块301被配置为确定处理器的历史消耗资源,所述历史消耗资源用于表征所述处理器渲染预设数量图像帧所需要的资源;The first determiningmodule 301 is configured to determine historical consumption resources of the processor, where the historical consumption resources are used to represent the resources required by the processor to render a preset number of image frames;

该第二确定模块302被配置为确定搭载所述处理器的显示器的基准刷新资源,所述基准刷新资源用于表征所述显示器刷新一帧图像所需要的资源;The second determiningmodule 302 is configured to determine a reference refresh resource of the display equipped with the processor, where the reference refresh resource is used to represent the resource required by the display to refresh a frame of image;

该调整模块303被配置为根据所述历史消耗资源和所述基准刷新资源,调整所述处理器的运行频率。Theadjustment module 303 is configured to adjust the operating frequency of the processor according to the historical consumption resource and the baseline refresh resource.

可选地,所述历史消耗资源为所述处理器历史连续渲染所述预设数量图像帧的实际时长,所述基准刷新资源为所述显示器刷新一帧图像的基准时长,所述调整模块包括:Optionally, the historical consumption resource is the actual duration for the processor to continuously render the preset number of image frames in history, and the reference refresh resource is the reference duration for the display to refresh one frame of image, and the adjustment module includes: :

第一确定子模块,被配置为根据所述基准时长和所述预设数量图像帧,确定所述显示器刷新所述预设数量图像帧的刷新时长;a first determination submodule, configured to determine the refresh duration for the display to refresh the preset number of image frames according to the reference duration and the preset number of image frames;

第一调整子模块,被配置为根据所述实际时长和所述刷新时长,调整所述处理器的运行频率。The first adjustment submodule is configured to adjust the operating frequency of the processor according to the actual duration and the refresh duration.

可选地,所述第二确定模块302包括:Optionally, the second determiningmodule 302 includes:

第一获取子模块,被配置为获取当前刷新率;The first acquisition sub-module is configured to acquire the current refresh rate;

第二确定子模块,被配置为根据所述当前刷新率,确定所述基准刷新时长;a second determining submodule, configured to determine the reference refresh duration according to the current refresh rate;

第三确定子模块,被配置为将所述基准刷新时长确定为搭载所述处理器的显示器的基准刷新资源。The third determination submodule is configured to determine the reference refresh duration as a reference refresh resource of the display equipped with the processor.

可选地,所述第一调整子模块具体被配置为在所述实际时长等于所述刷新时长的情况下,保持所述处理器的运行频率;在所述实际时长大于所述刷新时长的情况下,提高所述处理器的运行频率;在所述实际时长小于所述刷新时长的情况下,降低所述处理器的运行频率。Optionally, the first adjustment sub-module is specifically configured to maintain the running frequency of the processor when the actual duration is equal to the refresh duration; and when the actual duration is greater than the refresh duration Under the condition that the actual duration is less than the refresh duration, the running frequency of the processor is reduced.

可选地,所述历史消耗资源为所述处理器历史连续所述渲染预设数量图像帧的实际时长,所述基准刷新资源为所述显示器刷新一帧图像的基准时长,所述调整模块包括:Optionally, the historical consumption resource is the actual duration of continuously rendering the preset number of image frames in the history of the processor, and the benchmark refresh resource is the benchmark duration for the display to refresh one frame of image, and the adjustment module includes: :

第四确定子模块,被配置为根据所述实际时长和所述基准时长,确定目标帧数;a fourth determination submodule, configured to determine the target frame number according to the actual duration and the reference duration;

第二调整子模块,被配置为在所述目标帧数大于第一帧数且小于第二帧数的情况下,保持所述处理器的运行频率,其中,所述第一帧数小于所述第二帧数;The second adjustment submodule is configured to maintain the running frequency of the processor when the target frame number is greater than a first frame number and less than a second frame number, wherein the first frame number is less than the Second frame number;

第三调整子模块,被配置为在所述目标帧数小于或等于所述第一帧数的情况下,降低所述处理器的运行频率;a third adjustment submodule, configured to reduce the operating frequency of the processor when the target frame number is less than or equal to the first frame number;

第四调整子模块,被配置为在所述目标帧数大于或等于所述第二帧数的情况下,提高所述处理器的运行频率。The fourth adjustment sub-module is configured to increase the operating frequency of the processor when the target frame number is greater than or equal to the second frame number.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

本公开还提供一种计算机可读存储介质,其上存储有计算机程序指令,该程序指令被处理器执行时实现本公开提供的处理器的运行频率调整方法的步骤。The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and when the program instructions are executed by the processor, implement the steps of the method for adjusting the operating frequency of the processor provided by the present disclosure.

图4是根据一示例性实施例示出的一种处理器的运行频率调整装置400的框图。例如,装置400可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 4 is a block diagram of anapparatus 400 for adjusting the operating frequency of a processor according to an exemplary embodiment. For example,apparatus 400 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.

参照图4,装置400可以包括以下一个或多个组件:处理组件402,存储器404,电力组件406,多媒体组件408,音频组件410,输入/输出(I/O)的接口412,传感器组件414,以及通信组件416。4, theapparatus 400 may include one or more of the following components: aprocessing component 402, amemory 404, apower component 406, amultimedia component 408, anaudio component 410, an input/output (I/O)interface 412, asensor component 414, andcommunication component 416 .

处理组件402通常控制装置400的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件402可以包括一个或多个处理器420来执行指令,以完成上述的处理器的运行频率调整方法的全部或部分步骤。此外,处理组件402可以包括一个或多个模块,便于处理组件402和其他组件之间的交互。例如,处理组件402可以包括多媒体模块,以方便多媒体组件408和处理组件402之间的交互。Theprocessing component 402 generally controls the overall operation of thedevice 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. Theprocessing component 402 may include one ormore processors 420 to execute the instructions to complete all or part of the steps of the above-mentioned method for adjusting the operating frequency of the processors. Additionally,processing component 402 may include one or more modules that facilitate interaction betweenprocessing component 402 and other components. For example,processing component 402 may include a multimedia module to facilitate interaction betweenmultimedia component 408 andprocessing component 402.

存储器404被配置为存储各种类型的数据以支持在装置400的操作。这些数据的示例包括用于在装置400上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器404可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 404 is configured to store various types of data to support operations atdevice 400 . Examples of such data include instructions for any application or method operating ondevice 400, contact data, phonebook data, messages, pictures, videos, and the like.Memory 404 may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电力组件406为装置400的各种组件提供电力。电力组件406可以包括电源管理系统,一个或多个电源,及其他与为装置400生成、管理和分配电力相关联的组件。Power component 406 provides power to various components ofdevice 400 .Power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power todevice 400 .

多媒体组件408包括在所述装置400和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件408包括一个前置摄像头和/或后置摄像头。当装置400处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 408 includes screens that provide an output interface between thedevice 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments,multimedia component 408 includes a front-facing camera and/or a rear-facing camera. When theapparatus 400 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件410被配置为输出和/或输入音频信号。例如,音频组件410包括一个麦克风(MIC),当装置400处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器404或经由通信组件416发送。在一些实施例中,音频组件410还包括一个扬声器,用于输出音频信号。Audio component 410 is configured to output and/or input audio signals. For example,audio component 410 includes a microphone (MIC) that is configured to receive external audio signals whendevice 400 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored inmemory 404 or transmitted viacommunication component 416 . In some embodiments,audio component 410 also includes a speaker for outputting audio signals.

I/O接口412为处理组件402和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 412 provides an interface between theprocessing component 402 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件414包括一个或多个传感器,用于为装置400提供各个方面的状态评估。例如,传感器组件414可以检测到装置400的打开/关闭状态,组件的相对定位,例如所述组件为装置400的显示器和小键盘,传感器组件414还可以检测装置400或装置400一个组件的位置改变,用户与装置400接触的存在或不存在,装置400方位或加速/减速和装置400的温度变化。传感器组件414可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件414还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件414还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 414 includes one or more sensors for providing status assessment of various aspects ofdevice 400 . For example, thesensor assembly 414 can detect the open/closed state of thedevice 400, the relative positioning of components, such as the display and keypad of thedevice 400, and thesensor assembly 414 can also detect a change in the position of thedevice 400 or a component of thedevice 400 , the presence or absence of user contact with thedevice 400 , the orientation or acceleration/deceleration of thedevice 400 and the temperature change of thedevice 400 .Sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.Sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件416被配置为便于装置400和其他设备之间有线或无线方式的通信。装置400可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件416经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件416还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 416 is configured to facilitate wired or wireless communication betweenapparatus 400 and other devices.Device 400 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, thecommunication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置400可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述处理器的运行频率调整方法。In an exemplary embodiment,apparatus 400 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components are implemented for implementing the above-mentioned method for adjusting the operating frequency of the processor.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器404,上述指令可由装置400的处理器420执行以完成上述处理器的运行频率调整方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as amemory 404 including instructions, and the above-mentioned instructions can be executed by theprocessor 420 of theapparatus 400 to complete the adjustment of the operating frequency of the above-mentioned processor. method. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本领域技术人员在考虑说明书及实践本公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

CN202210122895.0A2022-02-092022-02-09Method and device for adjusting operating frequency of processor and storage mediumPendingCN114442792A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210122895.0ACN114442792A (en)2022-02-092022-02-09Method and device for adjusting operating frequency of processor and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210122895.0ACN114442792A (en)2022-02-092022-02-09Method and device for adjusting operating frequency of processor and storage medium

Publications (1)

Publication NumberPublication Date
CN114442792Atrue CN114442792A (en)2022-05-06

Family

ID=81372275

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210122895.0APendingCN114442792A (en)2022-02-092022-02-09Method and device for adjusting operating frequency of processor and storage medium

Country Status (1)

CountryLink
CN (1)CN114442792A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115048221A (en)*2022-06-272022-09-13Oppo广东移动通信有限公司Load processing method and device, electronic equipment and computer readable storage medium
CN116737357A (en)*2022-09-282023-09-12荣耀终端有限公司Method and device for adjusting processor frequency
CN119067832A (en)*2024-10-312024-12-03鼎道智芯(上海)半导体有限公司 A control method and device
CN120045332A (en)*2025-04-172025-05-27广东奥飞数据科技股份有限公司Intelligent computing resource energy-saving scheduling system based on load prediction

Citations (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20080055318A1 (en)*2006-08-312008-03-06Glen David I JDynamic frame rate adjustment
CN104424156A (en)*2013-09-092015-03-18中兴通讯股份有限公司Core processing method and device of processor and terminal
CN104460934A (en)*2013-09-132015-03-25华为终端有限公司Scheduling method and device for multi central processing units (CPU)
US20150189126A1 (en)*2014-01-022015-07-02Nvidia CorporationControlling content frame rate based on refresh rate of a display
CN105094272A (en)*2014-05-142015-11-25中兴通讯股份有限公司Regulating method and regulating device for hardware refresh rate of terminal
CN106020990A (en)*2016-06-302016-10-12宇龙计算机通信科技(深圳)有限公司Control method for central processing unit and terminal equipment
CN106933327A (en)*2017-03-102017-07-07广东欧珀移动通信有限公司A kind of control method of mobile terminal frame per second, device and mobile terminal
CN108509016A (en)*2016-05-312018-09-07广东欧珀移动通信有限公司Control the method and device and related media production of CPU power consumption
CN108600668A (en)*2018-03-272018-09-28维沃移动通信有限公司A kind of record screen frame per second method of adjustment and mobile terminal
CN109417564A (en)*2016-07-222019-03-01英特尔公司Technology for load of being assigned the job based on the utilization of resources stage
CN109426456A (en)*2017-08-302019-03-05英特尔公司Techniques for providing shared memory for accelerator boards
CN110681155A (en)*2019-09-292020-01-14Oppo广东移动通信有限公司Game optimization method, game optimization device and mobile terminal
EP3786935A1 (en)*2019-08-282021-03-03Beijing Xiaomi Mobile Software Co., Ltd.Method for controlling frame refresh rate of screen, device and storage medium
CN112516590A (en)*2019-09-192021-03-19华为技术有限公司Frame rate identification method and electronic equipment

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20080055318A1 (en)*2006-08-312008-03-06Glen David I JDynamic frame rate adjustment
CN104424156A (en)*2013-09-092015-03-18中兴通讯股份有限公司Core processing method and device of processor and terminal
CN104460934A (en)*2013-09-132015-03-25华为终端有限公司Scheduling method and device for multi central processing units (CPU)
US20150189126A1 (en)*2014-01-022015-07-02Nvidia CorporationControlling content frame rate based on refresh rate of a display
CN105094272A (en)*2014-05-142015-11-25中兴通讯股份有限公司Regulating method and regulating device for hardware refresh rate of terminal
CN108509016A (en)*2016-05-312018-09-07广东欧珀移动通信有限公司Control the method and device and related media production of CPU power consumption
CN106020990A (en)*2016-06-302016-10-12宇龙计算机通信科技(深圳)有限公司Control method for central processing unit and terminal equipment
CN109417564A (en)*2016-07-222019-03-01英特尔公司Technology for load of being assigned the job based on the utilization of resources stage
CN106933327A (en)*2017-03-102017-07-07广东欧珀移动通信有限公司A kind of control method of mobile terminal frame per second, device and mobile terminal
CN109426456A (en)*2017-08-302019-03-05英特尔公司Techniques for providing shared memory for accelerator boards
CN108600668A (en)*2018-03-272018-09-28维沃移动通信有限公司A kind of record screen frame per second method of adjustment and mobile terminal
EP3786935A1 (en)*2019-08-282021-03-03Beijing Xiaomi Mobile Software Co., Ltd.Method for controlling frame refresh rate of screen, device and storage medium
CN112445315A (en)*2019-08-282021-03-05北京小米移动软件有限公司Control method and device for screen refresh frame rate and storage medium
CN112516590A (en)*2019-09-192021-03-19华为技术有限公司Frame rate identification method and electronic equipment
CN110681155A (en)*2019-09-292020-01-14Oppo广东移动通信有限公司Game optimization method, game optimization device and mobile terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115048221A (en)*2022-06-272022-09-13Oppo广东移动通信有限公司Load processing method and device, electronic equipment and computer readable storage medium
CN116737357A (en)*2022-09-282023-09-12荣耀终端有限公司Method and device for adjusting processor frequency
CN119067832A (en)*2024-10-312024-12-03鼎道智芯(上海)半导体有限公司 A control method and device
CN119067832B (en)*2024-10-312025-03-21鼎道智芯(上海)半导体有限公司 A control method and device
CN120045332A (en)*2025-04-172025-05-27广东奥飞数据科技股份有限公司Intelligent computing resource energy-saving scheduling system based on load prediction
CN120045332B (en)*2025-04-172025-07-04广东奥飞数据科技股份有限公司 Intelligent computing resource energy-saving scheduling system based on load prediction

Similar Documents

PublicationPublication DateTitle
CN114442792A (en)Method and device for adjusting operating frequency of processor and storage medium
JP6355735B2 (en) Method and apparatus for initiating an energy saving mode
WO2017080055A1 (en)Liquid crystal display method and apparatus
CN108365657A (en)Control method, device and the storage medium of charging current
CN110262692B (en)Touch screen scanning method, device and medium
CN106557150A (en)Terminal control method and device
CN111462284A (en)Animation generation method, animation generation device and electronic equipment
CN111243554A (en)Screen brightness adjusting method, screen brightness adjusting device and storage medium
CN115175279A (en)Screen-turning control method and device and storage medium
CN114442789A (en)Dark screen control method, device, equipment and storage medium
CN116257195A (en)Screen projection method and device, storage medium and electronic equipment
CN110069310B (en) Method, device and storage medium for switching desktop wallpaper
CN111261035B (en) Screen display method and device
CN108597456B (en) Backlight brightness adjustment method and device
US11635468B2 (en)Method, apparatus and storage medium for determining charging time length of battery
CN105828006A (en)Television energy efficiency control method and device, and television set
CN105786561A (en)Process calling method and apparatus
CN116775259A (en) CPU control method, device and storage medium
CN115811594A (en)Video call image processing method, device, equipment, system and storage medium
CN114428563A (en)Method and device for determining display frame rate and touch sampling rate and storage medium
CN105868089B (en)The monitoring method and device of terminal
CN111538447A (en)Information display method, device, equipment and storage medium
CN111414245B (en) A method, device and medium for controlling the read/write rate of flash memory
CN107885553A (en)Animation loading method, device and electronic equipment
CN111292690A (en)Screen backlight brightness adjusting method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp