CN115712337A - Scheduling method and device of processor, electronic equipment and storage medium - Google Patents

Scheduling method and device of processor, electronic equipment and storage medium Download PDF

Info

Publication number
CN115712337A
CN115712337A CN202110969985.9A CN202110969985A CN115712337A CN 115712337 A CN115712337 A CN 115712337A CN 202110969985 A CN202110969985 A CN 202110969985A CN 115712337 A CN115712337 A CN 115712337A
Authority
CN
China
Prior art keywords
frequency
processor core
processor
voltage corresponding
core
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
CN202110969985.9A
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.)
Weiguang Co ltd
Original Assignee
Zeku Technology Shanghai 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 Zeku Technology Shanghai Corp Ltd filed Critical Zeku Technology Shanghai Corp Ltd
Priority to CN202110969985.9A priority Critical patent/CN115712337A/en
Publication of CN115712337A publication Critical patent/CN115712337A/en
Pending legal-status Critical Current

Links

Images

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

  • Power Sources (AREA)

Abstract

本申请公开了一种处理器的调度方法、装置、电子设备及存储介质,该处理器的调度方法应用于电子设备,电子设备的处理器包括第一处理器核以及第二处理器核,第一处理器核以及所述第二处理器核共用一路电源域,第一处理器核的处理能力高于第二处理器核的处理能力,该处理器的调度方法包括:若第一处理器核满足空闲状态对应的条件,且第二处理器核处于工作状态,获取当前第一处理器核的工作频率作为第一频率;获取第二处理器核的工作频率作为第二频率;若第一频率对应的电压大于第二频率对应的电压,将第一处理器核的工作频率调整为第三频率,其中,第三频率对应的电压小于第二频率对应的电压。本方法可以降低电子设备的功耗。

Figure 202110969985

The present application discloses a processor scheduling method, device, electronic equipment, and storage medium. The processor scheduling method is applied to electronic equipment. The processor of the electronic equipment includes a first processor core and a second processor core. A processor core and the second processor core share one power domain, the processing capability of the first processor core is higher than that of the second processor core, and the scheduling method of the processor includes: if the first processor core The condition corresponding to the idle state is satisfied, and the second processor core is in the working state, and the current operating frequency of the first processor core is obtained as the first frequency; the operating frequency of the second processor core is obtained as the second frequency; if the first frequency The corresponding voltage is greater than the voltage corresponding to the second frequency, and the operating frequency of the first processor core is adjusted to a third frequency, wherein the voltage corresponding to the third frequency is smaller than the voltage corresponding to the second frequency. The method can reduce the power consumption of the electronic equipment.

Figure 202110969985

Description

处理器的调度方法、装置、电子设备及存储介质Processor scheduling method, device, electronic device and storage medium

技术领域technical field

本申请涉及电子设备技术领域,更具体地,涉及一种处理器的调度方法、装置、电子设备及存储介质。The present application relates to the technical field of electronic equipment, and more specifically, to a processor scheduling method, device, electronic equipment, and storage medium.

背景技术Background technique

随着科技水平和生活水平的快速进步,电子设备的使用越来越广泛。并且,人们对电子设备的性能需求也越来越高,出现了配置有多核处理器的电子设备。但是,在增加电子设备的配置水平的同时,也给电子设备带来了较大的功耗。With the rapid advancement of technology and living standards, the use of electronic equipment is becoming more and more extensive. Moreover, people have higher and higher performance requirements for electronic devices, and electronic devices equipped with multi-core processors appear. However, while increasing the configuration level of the electronic equipment, it also brings relatively large power consumption to the electronic equipment.

发明内容Contents of the invention

鉴于上述问题,本申请提出了一种处理器的调度方法、装置、电子设备及存储介质。In view of the above problems, the present application proposes a processor scheduling method, device, electronic equipment, and storage medium.

第一方面,本申请实施例提供了一种处理器的调度方法,应用于电子设备,所述电子设备的处理器包括第一处理器核以及第二处理器核,所述第一处理器核以及所述第二处理器核共用一路电源域,所述第一处理器核的处理能力高于所述第二处理器核的处理能力,所述方法包括:若所述第一处理器核满足空闲状态对应的条件,且所述第二处理器核处于工作状态,获取当前所述第一处理器核的工作频率作为第一频率;获取所述第二处理器核的工作频率作为第二频率;若所述第一频率对应的电压大于所述第二频率对应的电压,将所述第一处理器核的工作频率调整为第三频率,其中,所述第三频率对应的电压小于所述第二频率对应的电压。In the first aspect, an embodiment of the present application provides a method for scheduling a processor, which is applied to an electronic device. The processor of the electronic device includes a first processor core and a second processor core. The first processor core And the second processor core shares one power domain, the processing capability of the first processor core is higher than the processing capability of the second processor core, and the method includes: if the first processor core satisfies The condition corresponding to the idle state, and the second processor core is in the working state, obtaining the current operating frequency of the first processor core as the first frequency; obtaining the operating frequency of the second processor core as the second frequency ; If the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, adjusting the operating frequency of the first processor core to a third frequency, wherein the voltage corresponding to the third frequency is less than the voltage corresponding to the second frequency The voltage corresponding to the second frequency.

第二方面,本申请实施例提供了一种处理器的调度装置,应用于电子设备,所述电子设备的处理器包括第一处理器核以及第二处理器核,所述第一处理器核以及所述第二处理器核共用一路电源域,所述第一处理器核的处理能力高于所述第二处理器核的处理能力,所述装置包括:第一频率获取模块、第二频率获取模块以及频率调整模块,其中,所述第一频率获取模块用于若所述第一处理器核满足空闲状态对应的条件,且所述第二处理器核处于工作状态,获取当前所述第一处理器核的工作频率作为第一频率;所述第二频率获取模块用于获取所述第二处理器核的工作频率作为第二频率;所述频率调整模块用于若所述第一频率对应的电压大于所述第二频率对应的电压,将所述第一处理器核的工作频率调整为第三频率,其中,所述第三频率对应的电压小于所述第二频率对应的电压。In a second aspect, an embodiment of the present application provides a processor scheduling device, which is applied to an electronic device. The processor of the electronic device includes a first processor core and a second processor core. The first processor core And the second processor core shares one power domain, the processing capability of the first processor core is higher than the processing capability of the second processor core, and the device includes: a first frequency acquisition module, a second frequency The acquisition module and the frequency adjustment module, wherein the first frequency acquisition module is configured to acquire the current first frequency if the first processor core satisfies the condition corresponding to the idle state and the second processor core is in the working state. The working frequency of a processor core is used as the first frequency; the second frequency obtaining module is used to obtain the working frequency of the second processor core as the second frequency; the frequency adjustment module is used to if the first frequency The corresponding voltage is greater than the voltage corresponding to the second frequency, and the operating frequency of the first processor core is adjusted to a third frequency, wherein the voltage corresponding to the third frequency is smaller than the voltage corresponding to the second frequency.

第三方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器,所述处理器包括第一处理器核以及第二处理器核;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述第一方面提供的处理器的调度方法。In a third aspect, the embodiment of the present application provides an electronic device, including: one or more processors, the processors include a first processor core and a second processor core; memory; one or more application programs, Wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs are configured to execute the processor provided in the first aspect above scheduling method.

第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的处理器的调度方法。In the fourth aspect, the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores program codes, and the program codes can be invoked by a processor to perform the processing provided in the above-mentioned first aspect The scheduler method.

本申请提供的方案,电子设备的处理器包括共用一路电源域的第一处理器核以及第二处理器核,且第一处理器核的处理能力高于第二处理器核的处理能力,在第一处理器核满足空闲状态对应的条件,且第二处理器核处于工作状态的情况下,获取当前第一处理器核的工作频率作为第一频率,获取第二处理器核的工作频率作为第二频率,若第一频率对应的电压大于第二频率对应的电压,将第一处理器核的工作频率调整为第三频率,其中,第三频率对应的电压小于第二频率对应的电压。由此,可以实现第一处理器核以及第二处理器核共用一路电源域的情况下,在第一处理器核进入空闲状态时,能够以处于工作状态的第二处理器核的工作频率对应的电压进行供电,并且由于第二处理器核的工作频率对应的电压相对较小,因此可以降低电子设备的功耗。In the solution provided by this application, the processor of the electronic device includes a first processor core and a second processor core sharing one power supply domain, and the processing capability of the first processor core is higher than that of the second processor core. When the first processor core satisfies the condition corresponding to the idle state and the second processor core is in the working state, the current operating frequency of the first processor core is obtained as the first frequency, and the operating frequency of the second processor core is obtained as the first frequency. For the second frequency, if the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, adjust the operating frequency of the first processor core to a third frequency, wherein the voltage corresponding to the third frequency is lower than the voltage corresponding to the second frequency. Thus, when the first processor core and the second processor core share one power supply domain, when the first processor core enters the idle state, the operating frequency of the second processor core in the working state can correspond to and the voltage corresponding to the working frequency of the second processor core is relatively small, so the power consumption of the electronic device can be reduced.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1示出了本申请实施例提供的一种系统架构的示意图。FIG. 1 shows a schematic diagram of a system architecture provided by an embodiment of the present application.

图2示出了根据本申请一个实施例的处理器的调度方法流程图。Fig. 2 shows a flowchart of a processor scheduling method according to an embodiment of the present application.

图3示出了根据本申请另一个实施例的处理器的调度方法流程图。Fig. 3 shows a flowchart of a processor scheduling method according to another embodiment of the present application.

图4示出了根据本申请又一个实施例的处理器的调度方法流程图。Fig. 4 shows a flowchart of a processor scheduling method according to another embodiment of the present application.

图5示出了根据本申请再一个实施例的处理器的调度方法流程图。Fig. 5 shows a flowchart of a processor scheduling method according to another embodiment of the present application.

图6示出了根据本申请又另一个实施例的处理器的调度方法流程图。Fig. 6 shows a flowchart of a processor scheduling method according to yet another embodiment of the present application.

图7示出了根据本申请一个实施例的处理器的调度装置的一种框图。Fig. 7 shows a block diagram of an apparatus for scheduling a processor according to an embodiment of the present application.

图8是本申请实施例的用于执行根据本申请实施例的处理器的调度方法的电子设备的框图。Fig. 8 is a block diagram of an electronic device for executing the processor scheduling method according to the embodiment of the present application according to the embodiment of the present application.

图9是本申请实施例的用于保存或者携带实现根据本申请实施例的处理器的调度方法的程序代码的存储单元。FIG. 9 is a storage unit for storing or carrying program codes for implementing the processor scheduling method according to the embodiment of the present application according to the embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

随着移动互联网技术的迅猛发展,电子设备(例如智能手机、平板电脑等)覆盖了生活的方方面面。并且,用户对电子设备的性能的需求越来越高,因此出现了多核处理器的电子设备。多核处理器是指包括多个处理器核的处理器,但是,处理器采用多核架构的同时,也带来了电子设备的功耗的增加,因此出现了BIG-LITTLE的处理器架构。其中,BIG-LITTLE的处理器架构用于为适当的作业分配恰当的处理器核,进而降低电子设备的功耗。With the rapid development of mobile Internet technology, electronic devices (such as smart phones, tablet computers, etc.) cover all aspects of life. Moreover, users have higher and higher demands on the performance of electronic devices, so electronic devices with multi-core processors appear. A multi-core processor refers to a processor including multiple processor cores. However, when the processor adopts a multi-core architecture, it also brings about an increase in power consumption of electronic devices, so a BIG-LITTLE processor architecture appears. Among them, BIG-LITTLE's processor architecture is used to allocate appropriate processor cores for appropriate tasks, thereby reducing the power consumption of electronic devices.

再者,由于不同的处理器核需要单独使用一个电源模块进行供电和电压控制,一些厂商基于成本考虑,将不同的处理器核划分至同一电源域(power domain)中。对于同一电源域中的处理器核,可以采用同一独立的电压电源及模块为处理器核进行统一供电和电压的统一控制,由此可以节约电源模块的数量,从而节省成本。特别地,对于采用超大核、大核和小核的处理器架构,超大核与大核会共用一路电源域。Furthermore, because different processor cores need to use a separate power supply module for power supply and voltage control, some manufacturers divide different processor cores into the same power domain (power domain) based on cost considerations. For the processor cores in the same power domain, the same independent voltage power supply and module can be used to provide unified power supply and unified voltage control for the processor cores, thereby saving the number of power modules and thus saving costs. In particular, for a processor architecture using a super-core, a big-core and a small-core, the super-core and the big-core will share one power domain.

相关技术中,不同处理能力的处理器核被分配至同一电源域。特别地,对于采用超大核、大核和小核的处理器架构,超大核与大核会共用一路电源域。In the related art, processor cores with different processing capabilities are allocated to the same power domain. In particular, for a processor architecture using a super-core, a big-core and a small-core, the super-core and the big-core will share one power domain.

发明人经过长时间的研究并发现,在一些场景中,处理能力相对较强的处理器核会以一个较高的频率进入idle状态(空闲状态),此时由于处理能力较强的处理器核和处理能力较弱的处理器核共用一路电源域,若处理能力较弱的处理器核处于工作状态,且处理能力较弱的处理器核处于低频点,则处理能力较弱的处理器核所选择的低频点对应的电压低于处理器能力较强的处理器核选择的高频对应的电压。而此时会使用相对较高的电压进行供电,但是处理能力较强的处理器核处于空闲状态,并不需要处理任务,因此会使得功耗增加。例如,在超大核与大核共用一路电源域的场景中,在网页加载场景时,由于处理器的负载较重,因此会启用超大核,并且超大核的工作频率会较高;加载过程中负载不大的时候,会让超大核进入空闲状态(此时超大核频率依旧为高频),其余任务给小核或者大核来执行;超大核以一个高频进入空闲状态后,由于当前负载不大,大核也由于调度器触发调频并尝试进入一个低频点,若大核所选择的低频点对应的电压低于超大核的高频对应的电压,在硬件投票时将保持超大核高频对应的高电压,因此会使得功耗增加。After a long period of research, the inventor found that in some scenarios, the processor core with relatively strong processing capability will enter the idle state (idle state) at a high frequency. Share one power supply domain with the processor core with weaker processing capability. If the processor core with weaker processing capability is in working state and the processor core with weaker processing capability is at a low The voltage corresponding to the selected low frequency point is lower than the voltage corresponding to the high frequency selected by a processor core with a stronger processor capability. At this time, a relatively high voltage is used for power supply, but the processor core with a strong processing capability is in an idle state and does not need to process tasks, thus increasing power consumption. For example, in the scenario where the super-core and the big-core share one power domain, when the web page loads the scene, the super-core will be enabled due to the heavy load of the processor, and the operating frequency of the super-core will be higher; When it is not too large, the super-large core will enter the idle state (the frequency of the super-large core is still high frequency at this time), and the rest of the tasks will be performed by the small core or large core; after the super-large core enters the idle state at a high frequency, due to the current load is not Large, large cores also trigger frequency modulation due to the scheduler and try to enter a low frequency point. If the voltage corresponding to the low frequency point selected by the large core is lower than the voltage corresponding to the high frequency of the super large core, the high frequency corresponding to the super large core will be maintained during hardware voting. The high voltage will increase the power consumption.

针对上述问题,发明人提出了本申请实施例提供的处理器的调度方法、装置、电子设备以及存储介质,可以实现第一处理器核以及第二处理器核共用一路电源域的情况下,在第一处理器核进入空闲状态时,能够以处于工作状态的第二处理器核的工作频率对应的电压进行供电,并且由于第二处理器核的工作频率对应的电压相对较小,因此可以降低电子设备的功耗。其中,具体的处理器的调度方法在后续的实施例中进行详细的说明。In view of the above problems, the inventor proposes a processor scheduling method, device, electronic device, and storage medium provided by the embodiments of the present application, which can realize that when the first processor core and the second processor core share one power supply domain, in the When the first processor core enters the idle state, it can supply power with the voltage corresponding to the operating frequency of the second processor core in the working state, and since the voltage corresponding to the operating frequency of the second processor core is relatively small, it can be reduced Power consumption of electronic equipment. Wherein, the specific processor scheduling method will be described in detail in the subsequent embodiments.

下面先对本申请实施例提供的处理器的调度方法应用的电子设备的系统架构进行介绍。The system architecture of the electronic device to which the processor scheduling method provided in the embodiment of the present application is applied is firstly introduced below.

请参阅图1,电子设备可以包括图1所示的系统架构10。其中,系统架构10可以包括操作系统20、处理器110以及多个电源域(如图1所示的第一电源域141以及第二电源域142)。处理器110可以包括多个处理器核,例如,图1所示的第一处理器核111、第二处理器核112、第三处理器核113以及第四处理器核114。Please refer to FIG. 1 , the electronic device may include the system architecture 10 shown in FIG. 1 . Wherein, the system architecture 10 may include an operating system 20 , a processor 110 and multiple power domains (such as the first power domain 141 and the second power domain 142 shown in FIG. 1 ). The processor 110 may include multiple processor cores, for example, the first processor core 111 , the second processor core 112 , the third processor core 113 and the fourth processor core 114 shown in FIG. 1 .

在一些方式中,处理器110的多个处理器核可以根据物理硬件结构划分为多个电源域,每个电源域中包括至少两个处理器核,由此,可以减少电源模块的数量,降低成本。例如,图1所示的系统架构中,第一处理器核111与第二处理器核112可以划分至第一电源域141,第三处理器核113以及第四处理器核114可以划分至第二电源域142。In some manners, the multiple processor cores of the processor 110 can be divided into multiple power domains according to the physical hardware structure, and each power domain includes at least two processor cores, thereby reducing the number of power modules and reducing the cost. For example, in the system architecture shown in FIG. 1, the first processor core 111 and the second processor core 112 can be divided into the first power domain 141, and the third processor core 113 and the fourth processor core 114 can be divided into the second power domain 141. Two power domains 142 .

其中,电源域,指的是允许统一进行供电以及统一控制电压的区域,同一电源域可以采用独立的电源模块对处理器核进行供电和电压的控制。系统架构10中可以包括一个或多个电源域(图1中仅示出两个)。当然,针对位于同一电源域中的处理器核,处理器核相关联的器件也可以由该电源域进行供电和电压的控制。其中,与处理器核相关联的器件可以为缓存、存储控制器等,在此不做限定。Wherein, the power domain refers to an area that allows uniform power supply and uniform voltage control, and the same power domain can use an independent power module to power and control the voltage of the processor core. One or more power domains (only two are shown in FIG. 1 ) may be included in the system architecture 10 . Of course, for the processor cores in the same power domain, the devices associated with the processor cores can also be powered and controlled by the power domain. Wherein, the device associated with the processor core may be a cache, a storage controller, etc., which is not limited here.

调度器11可以是运行在操作系统200中计算机程序,用于进行任务调度。其中,操作系统20可以与前端应用12进行交互,前端应用12可以产生一个或多个处理任务(如图1所示的处理任务1~处理任务n,n为正整数)。调度器11可以将前端应用12产生的处理任务,调度至处理器110中的一个或多个处理器核,以便由处理器核执行该任务。调度器11可以根据前端应用12产生的处理任务,以及各个处理器核实际的负载量,对处理任务进行分配,由此降低电子设备的功耗。The scheduler 11 may be a computer program running in the operating system 200 for task scheduling. Wherein, the operating system 20 can interact with the front-end application 12, and the front-end application 12 can generate one or more processing tasks (processing task 1 to processing task n shown in FIG. 1, where n is a positive integer). The scheduler 11 may schedule the processing tasks generated by the front-end application 12 to one or more processor cores in the processor 110 so that the processor cores execute the tasks. The scheduler 11 can allocate the processing tasks according to the processing tasks generated by the front-end application 12 and the actual load of each processor core, thereby reducing the power consumption of the electronic device.

可选地,调度器11可以运行于任一处于工作状态的处理器核。当然,调度器11也可以基于处于工作状态的处理器核的负载情况,确定运行其本身的处理器核,然后迁移至该处理器核运行,由此保证处理器核之间的负载均衡;也可以设置专门运行调度器11的处理器核或者其他的硬件(例如,专用集成电路、可编程逻辑器件等),以提升调度器11的运行速度。Optionally, the scheduler 11 may run on any working processor core. Of course, the scheduler 11 can also determine the processor core to run itself based on the load of the processor cores in the working state, and then migrate to the processor core to run, thereby ensuring load balancing among the processor cores; A processor core or other hardware (for example, an application specific integrated circuit, a programmable logic device, etc.) dedicated to running the scheduler 11 may be set to increase the running speed of the scheduler 11 .

在本申请实施例中,位于同一电源域的处理器核,可以包括处理能力不同的处理器核。在后续的实施例中,第一处理器核111与第二处理器核112共用一路电源域,并且第一处理器核111与第二处理器核112的处理能力不同。示例性地,处理器110可以包括四个2.04GHz的AMD A55处理器核、三个2.54GHz的AMD A77处理器核以及一个3.13GHz的AMD A77处理器核,其中,3.13GHz的AMD A77处理器核可以作为超大核,2.54GHz的AMD A77处理器核可以作为大核,2.04GHz的AMD A55处理器核可以作为小核,超大核、大核以及小核的处理能力依次降低,并且,超大核与所有大核共用一路电源域。In the embodiment of the present application, processor cores located in the same power domain may include processor cores with different processing capabilities. In subsequent embodiments, the first processor core 111 and the second processor core 112 share one power domain, and the first processor core 111 and the second processor core 112 have different processing capabilities. Exemplarily, the processor 110 may include four 2.04GHz AMD A55 processor cores, three 2.54GHz AMD A77 processor cores and one 3.13GHz AMD A77 processor core, wherein the 3.13GHz AMD A77 processor The core can be used as a super core, the 2.54GHz AMD A77 processor core can be used as a large core, and the 2.04GHz AMD A55 processor core can be used as a small core. Share one power domain with all large cores.

需要说明的是,图1所示的系统架构10,是以包括一个处理器300为例进行说明,实际应用中,可以是包括多个处理器。应当理解,图1所示的系统架构仅是示例性说明,电子设备的系统架构10中也可以包括更多或者更少的器件或者软件模块等,例如,图1中所示的系统架构10中,可以包括更多的处理器或者处理器核等,在此不做限定。It should be noted that the system architecture 10 shown in FIG. 1 is illustrated by including one processor 300 as an example, and may include multiple processors in practical applications. It should be understood that the system architecture shown in FIG. 1 is only illustrative, and the system architecture 10 of the electronic device may also include more or less devices or software modules. For example, in the system architecture 10 shown in FIG. 1 , may include more processors or processor cores, etc., which are not limited here.

下面结合附图对本申请提供的处理器的调度方法的实施例进行详细说明。Embodiments of the processor scheduling method provided by the present application will be described in detail below with reference to the accompanying drawings.

请参阅图2,图2示出了本申请一个实施例提供的处理器的调度方法的流程示意图。在具体的实施例中,所述处理器的调度方法应用于上述的电子设备,下面将以电子设备为例,说明本实施例的具体流程。当然,可以理解的,本实施例所应用的电子设备可以为智能手机、平板电脑、智能手表、智能眼镜、笔记本电脑等,在此不做限定。下面将针对图2所示的流程进行详细的阐述,所述处理器的调度方法具体可以包括以下步骤:Referring to FIG. 2 , FIG. 2 shows a schematic flowchart of a processor scheduling method provided by an embodiment of the present application. In a specific embodiment, the processor scheduling method is applied to the above-mentioned electronic device, and the specific process of this embodiment will be described below by taking the electronic device as an example. Of course, it can be understood that the electronic device applied in this embodiment may be a smart phone, a tablet computer, a smart watch, smart glasses, a notebook computer, etc., which is not limited here. The process shown in FIG. 2 will be described in detail below, and the scheduling method of the processor may specifically include the following steps:

步骤S110:若所述第一处理器核满足空闲状态对应的条件,且所述第二处理器核处于工作状态,获取当前所述第一处理器核的工作频率作为第一频率。Step S110: If the first processor core satisfies the condition corresponding to the idle state and the second processor core is in the working state, obtain the current working frequency of the first processor core as the first frequency.

在本申请实施例中,由于一路电源域中包括处理能力不同的处理器核时,若处理能力相对较强的处理器核以较高的频率进入空闲状态,而此时处理能力相对较弱的处理器核的工作频率对应的电压,比处理能力相对较强的处理器核的工作频率对应的电压低,则该电源域会以处理能力相对较强的处理器核的工作频率对应的电压进行供电,从而增加了电子设备的功耗。因此,电子设备中的一路电源域包括第一处理器核以及第二处理器核,且第一处理器核的处理能力比第二处理器核的处理能力相对较高的情况下,可以确定第一处理器核是否满足空闲状态对应的条件,以确定是否会产生上述增加功耗的情况。并且,在第一处理器核满足空闲状态对应的条件时,且第二处理器核处于工作状态,则可以获取两者的工作频率,以确定是否符合上述增加功耗的情况。其中,可以获取第一处理器核的工作频率,并将第一处理器核的工作频率作为第一频率。处理能力指的是,处理器核对于同样的处理任务,获得相同处理效果时的处理速度,也就是说,第一处理器核以及第二处理器核在处理相同任务时,第一处理器核的处理任务高于第二处理器核的处理速度。另外,处理能力更强的处理器核也可以处理更为复杂的处理任务,也就是说,第一处理器核与第二处理器核中,第一处理器核可以处理更为复杂的处理任务。In the embodiment of the present application, since one power domain includes processor cores with different processing capabilities, if the processor core with relatively stronger processing capability enters the idle state at a higher frequency, while the processor core with relatively weaker processing capability If the voltage corresponding to the operating frequency of the processor core is lower than the voltage corresponding to the operating frequency of the processor core with relatively strong processing capability, the power domain will be powered on at the voltage corresponding to the operating frequency of the processor core with relatively strong processing capability. power supply, thereby increasing the power consumption of electronic equipment. Therefore, one power supply domain in the electronic device includes the first processor core and the second processor core, and when the processing capability of the first processor core is relatively higher than that of the second processor core, it can be determined that the second processor core Whether a processor core satisfies the condition corresponding to the idle state, so as to determine whether the above-mentioned situation of increasing power consumption will occur. Moreover, when the first processor core satisfies the condition corresponding to the idle state and the second processor core is in the working state, the operating frequencies of the two may be obtained to determine whether the above-mentioned situation of increasing power consumption is met. Wherein, the operating frequency of the first processor core may be obtained, and the operating frequency of the first processor core may be used as the first frequency. The processing capability refers to the processing speed of the processor core when obtaining the same processing effect for the same processing task, that is to say, when the first processor core and the second processor core process the same task, the first processor core The processing task of is higher than the processing speed of the second processor core. In addition, processor cores with stronger processing capabilities can also handle more complex processing tasks, that is, among the first processor core and the second processor core, the first processor core can handle more complex processing tasks .

在一些实施方式中,可以在确定第一处理器核进入空闲状态,以及第二处理器核处于工作状态的情况下,执行获取第一处理器核以及第二处理器核的工作频率,以确定是否符合上述增加功耗的情况。可选地,可以由调度器实时的监测处理器核的状态,若第一处理器核进入空闲状态,而第二处理器核处于工作状态,则可能发生上述增加功耗的情况,因此可以执行后续步骤,即获取两者的工作频率。In some implementations, when it is determined that the first processor core enters the idle state and the second processor core is in the working state, acquiring the operating frequencies of the first processor core and the second processor core may be performed to determine Is it consistent with the above increased power consumption. Optionally, the state of the processor core can be monitored by the scheduler in real time. If the first processor core enters the idle state and the second processor core is in the working state, the above-mentioned situation of increasing power consumption may occur, so the The next step is to obtain the operating frequency of both.

在另一些实施方式中,也可以在第一处理器核将要进入空闲状态,以及第二处理器核处于工作状态的情况下,执行获取第一处理器核以及第二处理器核的工作频率,以确定是否符合上述增加功耗的情况。可选地,由于处理器核的工作状态由调度器进行调度,即调度器根据产生的处理任务,确定需要工作的处理器核,以及控制处理器核的工作频率,因此,可以在调度器确定出需要控制第一处理器核进入空闲状态时,确定第一处理器核将要进入空闲状态,以及第二处理器核处于工作状态的情况。In some other implementation manners, when the first processor core is about to enter an idle state and the second processor core is in a working state, acquiring the operating frequencies of the first processor core and the second processor core may also be performed, To determine whether the above conditions of increased power consumption are met. Optionally, since the working status of the processor cores is scheduled by the scheduler, that is, the scheduler determines the processor cores that need to work and controls the operating frequency of the processor cores according to the generated processing tasks. Therefore, it can be determined in the scheduler When it is necessary to control the first processor core to enter the idle state, it is determined that the first processor core is about to enter the idle state and the second processor core is in the working state.

在一些实施方式中,可以存储有处理器核与电源域之间的对应关系。即,电子设备中被划分为同一电源域的处理器核,由此,可以基于该对应关系,确定出第一处理器核与第二处理器核处于同一电源域,进而执行本申请实施例提供的处理器的调度方法的流程。In some implementations, the correspondence between processor cores and power domains may be stored. That is, the processor cores in the electronic device are divided into the same power domain, so based on the corresponding relationship, it can be determined that the first processor core and the second processor core are in the same power domain, and then execute the The flow of the scheduling method of the processor.

在一些实施方式中,第一处理器核进入空闲状态,可以是调度器在确定出当前的负载量低于第一负载量阈值时,控制第一处理器核进入空闲状态,以使处理能力较强但是功耗较高的第一处理器核休眠,从而降低电子设备的功耗。在该情况下,可能由于电子设备中依然存在需要第二处理器核进行处理的处理任务,因此,调度器控制第二处理器核仍然处于工作状态。示例性地,第一处理器核可以为上述举例的超大核,第二处理器核可以为上述举例的大核,并且两者共用一路电源域,在负载较高的应用场景时,调度器会启用超大核,并且将其调整到较高的工作频率,而在退出该应用场景时,由于负载较低,又会控制超大核进行空闲状态。In some implementations, the first processor core enters the idle state. It may be that the scheduler controls the first processor core to enter the idle state when determining that the current load is lower than the first load threshold, so that the processing capacity is relatively low. The powerful but high power consumption first processor core is dormant, thereby reducing the power consumption of the electronic device. In this case, it may be that the electronic device still has processing tasks that need to be processed by the second processor core, so the scheduler controls the second processor core to still be in a working state. Exemplarily, the first processor core can be the super core mentioned above, and the second processor core can be the large core mentioned above, and the two share one power domain. In the application scenario with high load, the scheduler will Enable the ultra-large core and adjust it to a higher operating frequency. When exiting the application scenario, due to the low load, the ultra-large core will be controlled to idle.

步骤S120:获取所述第二处理器核的工作频率作为第二频率。Step S120: Obtain the operating frequency of the second processor core as a second frequency.

在本申请实施例中,还可以获取第二处理器核的工作频率作为第二频率。可选地,可以从调度器的频率管理模块获取第二处理器核的工作频率,当然,在获取第一处理器核的工作频率时,也从该频率管理模块获取第一处理器核的工作频率。当然,获取第一处理器核以及第二处理器核的工作频率的方式可以不做限定。In the embodiment of the present application, the operating frequency of the second processor core may also be obtained as the second frequency. Optionally, the operating frequency of the second processor core can be obtained from the frequency management module of the scheduler. Of course, when obtaining the operating frequency of the first processor core, the operating frequency of the first processor core is also obtained from the frequency management module. frequency. Certainly, the manner of acquiring the operating frequencies of the first processor core and the second processor core may not be limited.

需要说明的是,获取第一处理器核的工作频率与获取第二处理器核的工作频率之间的顺序可以不做限定,其可以在若第一处理器核满足空闲状态对应的条件,且第二处理器核处于工作状态的情况下,先获取当前第一处理器核的工作频率作为第一频率,然后获取第二处理器核的工作频率作为第二频率;也可以先获取第二处理器核工作频率作为第二频率,然后获取当前第一处理器核的工作频率作为第一频率;还可以同时获取第一处理器核的工作频率作为第一频率,以及获取第二处理器核的工作频率作为第二频率。It should be noted that the order of obtaining the operating frequency of the first processor core and obtaining the operating frequency of the second processor core may not be limited, and it may be that if the first processor core satisfies the condition corresponding to the idle state, and When the second processor core is in the working state, first obtain the current operating frequency of the first processor core as the first frequency, and then obtain the operating frequency of the second processor core as the second frequency; core operating frequency as the second frequency, and then obtain the current operating frequency of the first processor core as the first frequency; it is also possible to simultaneously obtain the operating frequency of the first processor core as the first frequency, and obtain the operating frequency of the second processor core The working frequency is used as the second frequency.

步骤S130:若所述第一频率对应的电压大于所述第二频率对应的电压,将所述第一处理器核的工作频率调整为第三频率,其中,所述第三频率对应的电压小于所述第二频率对应的电压。Step S130: If the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, adjust the operating frequency of the first processor core to a third frequency, wherein the voltage corresponding to the third frequency is less than The voltage corresponding to the second frequency.

在本申请实施例中,在获取到第一频率以及第二频率后,则可以获取第一处理器核的第一频率对应的电压,以及获取第二处理器核的第二频率对应的电压,将第一频率对应的电压与第二频率对应的电压进行比较;根据比较结果,确定第一频率对应的电压是否大于第二频率对应的电压;若第一频率对应的电压大于第二频率对应的电压,则此时两者对应的电源域会采用相对较高的电压,即第一处理器核的频率对应的电压进行供电,而此时第一处理器核满足空闲状态对应的条件,此时并不需要工作,因此会带来功耗增加,故可以将第一处理器核的工作频率调整为第三频率,以使第一处理器核对应的工作频率对应的电压小于第二处理器核的工作频率对应的电压,从而后续会使得电源域的供电电压为第二频率对应的供电电压,使供电电压相对此前降低,进而降低电子设备的功耗,并且第一处理器核满足空闲状态对应的条件,而不会影响电子设备的正常运行。反之,若第一频率对应的电压不大于第二频率对应的电压,则可以不执行工作频率的调整。In the embodiment of the present application, after the first frequency and the second frequency are obtained, the voltage corresponding to the first frequency of the first processor core can be obtained, and the voltage corresponding to the second frequency of the second processor core can be obtained, Compare the voltage corresponding to the first frequency with the voltage corresponding to the second frequency; determine whether the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency according to the comparison result; if the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency voltage, at this time the power domains corresponding to the two will use a relatively high voltage, that is, the voltage corresponding to the frequency of the first processor core for power supply, and at this time the first processor core meets the conditions corresponding to the idle state, at this time It does not need to work, so it will increase power consumption, so the operating frequency of the first processor core can be adjusted to the third frequency, so that the voltage corresponding to the operating frequency of the first processor core is lower than that of the second processor core. The voltage corresponding to the operating frequency, so that the power supply voltage of the power domain will be the power supply voltage corresponding to the second frequency, so that the power supply voltage will be lower than before, thereby reducing the power consumption of the electronic device, and the first processor core meets the requirements of the idle state. conditions without affecting the normal operation of the electronic equipment. On the contrary, if the voltage corresponding to the first frequency is not greater than the voltage corresponding to the second frequency, the adjustment of the operating frequency may not be performed.

在一些实施方式中,对第一处理器核的工作频率进行调整时,由于需求的电压与工作频率的关系通常是呈正相关的,因此,调度器可以对第一处理器核的工作频率进行降低,以使降低后的第三频率对应的电压不大于第二处理器核的第二频率对应的电压。可选地,可以将第一处理器核的工作频率调至最低的频点,即上述第三频率为该最低的频点。In some embodiments, when adjusting the operating frequency of the first processor core, since the relationship between the required voltage and the operating frequency is usually positively correlated, the scheduler can reduce the operating frequency of the first processor core , so that the voltage corresponding to the reduced third frequency is not greater than the voltage corresponding to the second frequency of the second processor core. Optionally, the operating frequency of the first processor core may be adjusted to the lowest frequency point, that is, the above-mentioned third frequency is the lowest frequency point.

在一种可能的实施方式中,调度器确定第一处理器核需要调整至的第三频率之后,可以通过Cpufreq向硬件变频模块发送调整工作频率至第三频率的调频请求,相应地,硬件变频模块基于该调频请求,将第一处理器核的工作频率调整至第三频率。其中,Cpufreq为用于动态调压调频(DVFS)的一个驱动程序,调度器可以通过该驱动程序实现处理器核的工作频率的调整。In a possible implementation, after the scheduler determines the third frequency that the first processor core needs to adjust to, it can send a frequency modulation request to adjust the operating frequency to the third frequency to the hardware frequency conversion module through Cpufreq, and accordingly, the hardware frequency conversion The module adjusts the operating frequency of the first processor core to the third frequency based on the frequency adjustment request. Wherein, Cpufreq is a driver used for dynamic voltage regulation and frequency modulation (DVFS), and the scheduler can realize the adjustment of the operating frequency of the processor core through the driver program.

在一些实施方式中,由于不同处理器核的配置不同,不同的工作频率与需求的电压之间的对应关系也不同。因此,可以存储有第一处理器核的电压与工作频率之间的对应关系,以及第二处理器核的电压与工作频率之间的对应关系,然后基于存储的对应关系,可以获取到第一处理器核的第一频率对应的电压,以及获取第二处理器核的第二频率对应的电压。In some implementations, due to the different configurations of different processor cores, the corresponding relationship between different operating frequencies and required voltages is also different. Therefore, the corresponding relationship between the voltage of the first processor core and the operating frequency and the corresponding relationship between the voltage of the second processor core and the operating frequency can be stored, and then based on the stored corresponding relationship, the first The voltage corresponding to the first frequency of the processor core, and the voltage corresponding to the second frequency of the second processor core are acquired.

需要说明的是,本申请实施例中,上述第一处理器核以及第二处理器核共用的电源域中,第一处理器核以及第二处理器核的数量可以不做限定,也就是说,可以理解为该电源域中包括两种类型的处理器核。在第一处理器核的数量为多个,第二处理器核为单个时,例如,该电源域包括多个上述的大核以及一个上述的小核,则在所有第一处理器核满足空闲状态对应的条件,且第二处理器核处于工作状态时,执行上述流程;在第一处理器核为单个,第二处理器核为多个时,例如,该电源域包括一个超大核,以及多个大核时,则在第一频率对应的电压大于每个处于工作状态的第二处理器核的工作频率对应的电压时,将第一处理器核的工作频率调整为第三频率;在第一处理器核以及第二处理器核的数量均为多个时,则需要在所有第一处理器核满足空闲状态对应的条件,且第二处理器核处于工作状态时,执行上述流程,并且在任意一个第一处理器核的工作频率对应的电压大于所有处于工作状态的第二处理器器核的工作频率对应的电压时,将第一处理器核的工作频率调整为第三频率。It should be noted that, in the embodiment of the present application, in the power domain shared by the first processor core and the second processor core, the number of the first processor core and the second processor core may not be limited, that is to say , it can be understood that the power domain includes two types of processor cores. When the number of the first processor core is multiple and the second processor core is single, for example, the power domain includes a plurality of the above-mentioned large cores and one of the above-mentioned small cores, then all the first processor cores satisfy the idle The condition corresponding to the state, and the second processor core is in the working state, execute the above process; when the first processor core is single and the second processor core is multiple, for example, the power domain includes a super core, and When there are multiple large cores, when the voltage corresponding to the first frequency is greater than the voltage corresponding to the operating frequency of each second processor core in the working state, the operating frequency of the first processor core is adjusted to the third frequency; When the number of the first processor core and the number of the second processor core are multiple, it is necessary to execute the above process when all the first processor cores meet the conditions corresponding to the idle state and the second processor core is in the working state, And when the voltage corresponding to the operating frequency of any first processor core is greater than the voltage corresponding to the operating frequency of all the second processor cores in the working state, the operating frequency of the first processor core is adjusted to the third frequency.

可选地,本申请实施例提供的处理器的调度方法可以由调度器执行,调度器可以运行于任一处于工作状态的处理器核,或者专门设置的硬件器件。Optionally, the processor scheduling method provided in the embodiment of the present application may be executed by a scheduler, and the scheduler may run on any processor core in a working state, or a specially configured hardware device.

本申请实施例提供的处理器的调度方法,可以实现第一处理器核以及第二处理器核共用一路电源域,由此减少电源模块的数量,降低成本。并且在处理能力相对较强的第一处理器核进入空闲状态时,能够以处于工作状态的第二处理器核的工作频率对应的电压进行供电,并且由于第二处理器核的工作频率对应的电压相对较小,因此可以降低电子设备的功耗。The processor scheduling method provided in the embodiment of the present application can realize that the first processor core and the second processor core share one power domain, thereby reducing the number of power modules and reducing the cost. And when the first processor core with relatively strong processing capability enters the idle state, it can supply power with the voltage corresponding to the operating frequency of the second processor core in the working state, and because the operating frequency of the second processor core corresponds to The voltage is relatively small, so it can reduce the power consumption of electronic equipment.

请参阅图3,图3示出了本申请另一个实施例提供的处理器的调度方法的流程示意图。该处理器的调度方法应用于上述电子设备,下面将针对图3所示的流程进行详细的阐述,所述处理器的调度方法具体可以包括以下步骤:Referring to FIG. 3 , FIG. 3 shows a schematic flowchart of a processor scheduling method provided by another embodiment of the present application. The scheduling method of the processor is applied to the above-mentioned electronic equipment, and the process shown in FIG. 3 will be described in detail below. The scheduling method of the processor may specifically include the following steps:

步骤S210:若所述第一处理器核处于工作状态,获取所述第一处理器核由工作状态进入空闲状态的概率作为第一概率。Step S210: if the first processor core is in the working state, obtain the probability that the first processor core enters the idle state from the working state as the first probability.

在本申请实施例中,可以在第一处理器核处于工作状态而将要进入空闲状态,以及第二处理器核处于工作状态时,获取两者的工作频率,以确定两者的工作频率是否满足上述功耗增加的情况。具体地,处理器核处于工作状态的情况下,可以获取第一处理器核由工作状态进入空闲状态的概率作为第一概率。其中,第一处理器核由工作状态进入空闲状态的概率,表示了第一处理器核当前进入空闲状态的可能性,该概率越高,则表示其越可能进入空闲状态。In the embodiment of the present application, when the first processor core is in the working state and is about to enter the idle state, and the second processor core is in the working state, the operating frequency of the two can be obtained to determine whether the operating frequency of the two satisfies The above-mentioned cases of increased power consumption. Specifically, when the processor core is in the working state, the probability that the first processor core enters the idle state from the working state may be acquired as the first probability. Wherein, the probability that the first processor core enters the idle state from the working state indicates the possibility that the first processor core currently enters the idle state, and the higher the probability, the more likely it is to enter the idle state.

在一些实施方式中,获取所述第一处理器核由工作状态进入空闲状态的概率作为第一概率,可以包括:获取所述处理器的任务队列;基于所述任务队列中所述第一处理器核对应的处理任务,确定所述第一处理器核由工作状态进入空闲状态的概率作为第一概率,所述概率与所述处理任务的数量呈负相关。可以理解地,第一处理器核对应的处理任务越多时,表示其当前需要处理的任务越多,因此其进入空闲状态的可能性也越小,因此,上述概率越低;反之,第一处理器核对应的处理任务越多时,其进入空闲状态的可能性越大,故可以获取任务队列中第一处理器核对应的处理任务的数量,以确定上述概率。可选地,可以在第一处理器核的处理任务的数量为0时,将上述概率确定为100%。In some implementations, obtaining the probability that the first processor core enters the idle state from the working state as the first probability may include: obtaining the task queue of the processor; The processing tasks corresponding to the processor cores, determine the probability that the first processor core enters the idle state from the working state as the first probability, and the probability is negatively correlated with the number of the processing tasks. It can be understood that when the first processor core has more processing tasks, it means that it currently needs to process more tasks, so it is less likely to enter the idle state, therefore, the above probability is lower; on the contrary, the first processing The more processing tasks a processor core corresponds to, the greater the possibility it will enter the idle state, so the number of processing tasks corresponding to the first processor core in the task queue can be obtained to determine the above probability. Optionally, when the number of processing tasks of the first processor core is 0, the above probability may be determined as 100%.

在另一些实施方式中,也可以获取处理器的负载量,以根据处理器的负载量确定上述概率。其中,该负载量可以是通过设备中的任务负载跟踪(per-entity loadtracking,PELT)模块获取。可选地,可以利用处理器的利用率描述处理器的负载,例如,用于描述处理器负载的数值可以是处理器核的利用率的数值。In some other implementation manners, the load of the processor may also be obtained, so as to determine the above probability according to the load of the processor. Wherein, the load amount may be acquired through a task load tracking (per-entity loadtracking, PELT) module in the device. Optionally, the utilization rate of the processor may be used to describe the load of the processor, for example, the value used to describe the processor load may be the value of the utilization rate of the processor core.

在一种可能的实施方式中,电子设备的处理器包括超大核、大核以及小核时,超大核为上述第一处理器核,大核为上述第二处理器核,该情况下,需求超大核处理任务时,通常是处理器的负载较高时,即处理任务较多时,才会启用超大核,以优化电子设备的功耗。因此,该情况下,可以获取处理器的负载量,以根据处理器的负载量,确定第一处理器核进入空闲状态的概率。In a possible implementation manner, when the processor of the electronic device includes a super-large core, a large core, and a small core, the super-large core is the above-mentioned first processor core, and the large core is the above-mentioned second processor core. In this case, the requirement When the ultra-large core processes tasks, usually when the load on the processor is high, that is, when there are many processing tasks, the ultra-large core is enabled to optimize the power consumption of electronic devices. Therefore, in this case, the load of the processor may be acquired, so as to determine the probability that the first processor core enters the idle state according to the load of the processor.

可选地,可以判断处理器的负载量是否小于第二负载量阈值,该第二负载量阈值为第一处理器核是否将要调整为空闲状态的判断依据,若处理器的负载量小于第二负载量阈值,则可以将上述概率确定为100%,反之,则可以将上述概率确定为0%。Optionally, it may be determined whether the load of the processor is less than a second load threshold, and the second load threshold is the basis for judging whether the first processor core will be adjusted to an idle state, if the load of the processor is less than the second If the threshold value of the load is lower, the above probability may be determined as 100%, otherwise, the above probability may be determined as 0%.

可选地,可以判断处理器的负载量是否小于第二负载量阈值,该第二负载量阈值为第一处理器核是否将要调整为空闲状态的判断依据,若处理器的负载量小于第二负载量阈值,则可以将上述概率确定为100%;若处理器的负载量不小于第二负载量阈值,可以进一步判断处理器的负载量是否小于第三负载量阈值,该第三负载量阈值大于第二负载量阈值,该第三负载量阈值作为将要进入即将调整为空闲状态的判断依据;若小于第三负载量阈值,则可以进一步根据当前时刻之前的预设时长内的负载量的数据,获取处理器的负载量的变化趋势,并在变化趋势为递减趋势时,基于递减的幅度,确定以上概率,当然,在处理器的负载量不小于第二负载量阈值的情况下确定的以上概率应当小于100%,另外,确定的以上概率与递减的幅度呈正相关,例如,呈正比等。若处理器的负载量不小于第三负载量阈值,则表示当前没有将要调整为空闲状态的可能性,因此将以上概率确定为0。Optionally, it may be determined whether the load of the processor is less than a second load threshold, and the second load threshold is the basis for judging whether the first processor core will be adjusted to an idle state, if the load of the processor is less than the second load threshold, then the above probability can be determined as 100%; if the processor load is not less than the second load threshold, it can be further judged whether the processor load is less than the third load threshold, the third load threshold If it is greater than the second load threshold, the third load threshold is used as the judgment basis for entering the idle state; if it is less than the third load threshold, it can be further based on the load data within the preset time period before the current moment. , to obtain the change trend of the load of the processor, and when the change trend is a decreasing trend, based on the magnitude of the decrease, the above probability is determined, of course, the above is determined when the load of the processor is not less than the second load threshold The probability should be less than 100%. In addition, the above determined probabilities are positively correlated with the decreasing range, for example, proportional. If the load of the processor is not less than the third load threshold, it means that there is no possibility of adjusting to the idle state at present, so the above probability is determined as 0.

当然,具体获取第一处理器核由工作状态进入空闲状态的概率的方式可以不做限定。Of course, there is no limitation to a specific manner of obtaining the probability that the first processor core enters the idle state from the working state.

步骤S220:若所述第一概率大于第一预设概率,且所述第二处理器核处于工作状态,获取当前所述第一处理器核的工作频率作为第一频率。Step S220: If the first probability is greater than the first preset probability, and the second processor core is in a working state, obtain the current working frequency of the first processor core as the first frequency.

在本申请实施例中,在获取到以上第一概率后,可以将第一概率与第一预设概率进行比较,该第一预设概率作为第一处理器核是否由工作状态进入空闲状态的判断依据;根据比较结果,若确定出第一概率大于第一预设概率,则表示第一处理器核将要由工作状态进入空闲状态,因此可以执行获取的流程,以便在满足上述功耗增加的情况时,对第一处理器核的工作频率进行调整,使功耗降低;反之,若确定出第一概率不大于第一预设概率,则可以不执行后续的流程。其中,第一预设概率的具体数值可以不做限定,例如,第一预设概率可以为90%,95%等。In the embodiment of the present application, after the above first probability is obtained, the first probability can be compared with the first preset probability, and the first preset probability is used as an indicator of whether the first processor core enters the idle state from the working state. Judgment basis; according to the comparison result, if it is determined that the first probability is greater than the first preset probability, it means that the first processor core will enter the idle state from the working state, so the acquisition process can be executed so as to satisfy the above-mentioned increase in power consumption In some cases, the operating frequency of the first processor core is adjusted to reduce power consumption; otherwise, if it is determined that the first probability is not greater than the first preset probability, the subsequent processes may not be executed. Wherein, the specific value of the first preset probability may not be limited, for example, the first preset probability may be 90%, 95% and so on.

步骤S230:获取所述第二处理器核的工作频率作为第二频率。Step S230: Obtain the operating frequency of the second processor core as a second frequency.

步骤S240:若所述第一频率对应的电压大于所述第二频率对应的电压,将所述第一处理器核的工作频率调整为第三频率,其中,所述第三频率对应的电压小于所述第二频率对应的电压。Step S240: If the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, adjust the operating frequency of the first processor core to a third frequency, wherein the voltage corresponding to the third frequency is less than The voltage corresponding to the second frequency.

在本申请实施例中,步骤S230以及步骤S240可以参阅其他实施例的内容,在此不再赘述。In the embodiment of the present application, reference may be made to the contents of other embodiments for step S230 and step S240, and details are not repeated here.

步骤S250:基于所述第三频率对应的电压以及所述第二频率对应的电压,确定所述电源域对应的供电电压为所述第二频率对应的电压。Step S250: Based on the voltage corresponding to the third frequency and the voltage corresponding to the second frequency, determine that the supply voltage corresponding to the power domain is the voltage corresponding to the second frequency.

在本申请实施例中,在调整第一处理器核的工作频率为第三频率后,使得第三频率对应的电压小于所述第二频率对应的电压,此时,可以基于第三频率对应的电压以及第二频率对应的电压,然后确定电源域对应的供电电压为第二频率对应的电压。也就是说,从第三频率对应的电压以及第二频率对应的电压确定出相对较高的电压,即第二频率的电压作为供电电压。In the embodiment of the present application, after adjusting the operating frequency of the first processor core to the third frequency, the voltage corresponding to the third frequency is lower than the voltage corresponding to the second frequency. At this time, based on the voltage corresponding to the third frequency, voltage and the voltage corresponding to the second frequency, and then determine the power supply voltage corresponding to the power domain as the voltage corresponding to the second frequency. That is to say, a relatively high voltage, that is, the voltage of the second frequency is determined from the voltage corresponding to the third frequency and the voltage corresponding to the second frequency as the power supply voltage.

步骤S260:调整所述电源域的供电电压为所述第二频率对应的电压。Step S260: Adjust the power supply voltage of the power domain to the voltage corresponding to the second frequency.

在本申请实施例中,在确定出电源域的供电电压为第二频率对应的电压后,则可以调整电源域的供电电压为第二频率对应的电压,由此避免了第一处理器核由电压相对较高的频率进入空闲状态时,电源域依然使用相对较高的电压供电,也就避免了功耗的增加。In the embodiment of the present application, after it is determined that the power supply voltage of the power domain is the voltage corresponding to the second frequency, the power supply voltage of the power domain can be adjusted to the voltage corresponding to the second frequency, thereby preventing the first processor core from being When a frequency with a relatively high voltage enters an idle state, the power domain still uses a relatively high voltage for power supply, thereby avoiding an increase in power consumption.

需要说明的是,步骤S250以及步骤S260也可以用于其他实施例中,即其他实施例中调整第一处理器核的工作频率为第三频率后,也可以执行步骤S250以及步骤S260的流程。It should be noted that steps S250 and S260 can also be used in other embodiments, that is, in other embodiments, after the operating frequency of the first processor core is adjusted to the third frequency, the processes of steps S250 and S260 can also be executed.

本申请实施例提供的处理器的调度方法,通过在第一处理器核处于工作状态,获取第一处理器核由工作状态进入空闲状态的概率作为第一概率,在第一概率大于第一预设概率,且第二处理器核处于工作状态的情况下,获取当前第一处理器核的工作频率作为第一频率,获取第二处理器核的工作频率作为第二频率,若第一频率对应的电压大于第二频率对应的电压,将第一处理器核的工作频率调整为第三频率,其中,第三频率对应的电压小于第二频率对应的电压。由此,可以实现第一处理器核以及第二处理器核共用一路电源域的情况下,在第一处理器核将要进入空闲状态时,能够以处于工作状态的第二处理器核的工作频率对应的电压进行供电,并且由于第二处理器核的工作频率对应的电压相对较小,因此可以降低电子设备的功耗。The processor scheduling method provided by the embodiment of the present application obtains the probability that the first processor core enters the idle state from the working state when the first processor core is in the working state as the first probability, and when the first probability is greater than the first predetermined If the probability is set and the second processor core is in the working state, the current operating frequency of the first processor core is obtained as the first frequency, and the operating frequency of the second processor core is obtained as the second frequency. If the first frequency corresponds to The voltage corresponding to the second frequency is greater than the voltage corresponding to the second frequency, and the operating frequency of the first processor core is adjusted to a third frequency, wherein the voltage corresponding to the third frequency is lower than the voltage corresponding to the second frequency. Thus, when the first processor core and the second processor core share one power supply domain, when the first processor core is about to enter the idle state, the operating frequency of the second processor core in the working state can be The corresponding voltage is used for power supply, and since the voltage corresponding to the working frequency of the second processor core is relatively small, the power consumption of the electronic device can be reduced.

请参阅图4,图4示出了本申请又一个实施例提供的处理器的调度方法的流程示意图。该处理器的调度方法应用于上述电子设备,下面将针对图4所示的流程进行详细的阐述,所述处理器的调度方法具体可以包括以下步骤:Referring to FIG. 4 , FIG. 4 shows a schematic flowchart of a processor scheduling method provided in another embodiment of the present application. The scheduling method of the processor is applied to the above-mentioned electronic equipment, and the process shown in FIG. 4 will be described in detail below. The scheduling method of the processor may specifically include the following steps:

步骤S310:若所述第一处理器核进入空闲状态,且所述第二处理器核处于工作状态,获取当前所述第一处理器核的工作频率作为第一频率。Step S310: If the first processor core enters an idle state and the second processor core is in a working state, obtain the current working frequency of the first processor core as a first frequency.

与前一个实施例不同的是,在本申请实施例中,可以在第一处理器核处于工作状态进入空闲状态后,以及第二处理器核处于工作状态时,获取两者的工作频率,以确定两者的工作频率是否满足上述功耗增加的情况。Different from the previous embodiment, in the embodiment of the present application, after the first processor core is in the working state and enters the idle state, and when the second processor core is in the working state, the operating frequencies of the two can be obtained, so as to Determine whether the operating frequency of both meets the above-mentioned increase in power consumption.

在一些实施方式中,由于处理器核的工作状态由调度器进行调度,即调度器根据产生的处理任务,确定需要工作的处理器核,以及控制处理器核的工作频率,因此,可以在调度器控制第一处理器核进入空闲状态时,确定第一处理器核进入空闲状态,以及,调度器可以获取到第二处理器核处于工作状态的情况。In some implementations, since the working status of the processor cores is scheduled by the scheduler, that is, the scheduler determines the processor cores that need to work and controls the working frequency of the processor cores according to the generated processing tasks. When the controller controls the first processor core to enter the idle state, it is determined that the first processor core enters the idle state, and the scheduler can acquire the fact that the second processor core is in the working state.

步骤S320:获取所述第二处理器核的工作频率作为第二频率。Step S320: Obtain the operating frequency of the second processor core as a second frequency.

步骤S330:若所述第一频率对应的电压大于所述第二频率对应的电压,将所述第一处理器核的工作频率调整为第三频率,其中,所述第三频率对应的电压小于所述第二频率对应的电压。Step S330: If the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, adjust the operating frequency of the first processor core to a third frequency, wherein the voltage corresponding to the third frequency is less than The voltage corresponding to the second frequency.

在本申请实施例中,步骤S320以及步骤S330可以参阅其他实施例的内容,在此不再赘述。In the embodiment of the present application, reference may be made to the contents of other embodiments for step S320 and step S330, and details are not repeated here.

本申请实施例提供的处理器的调度方法,可以实现第一处理器核以及第二处理器核共用一路电源域的情况下,在第一处理器核进入空闲状态后,能够以处于工作状态的第二处理器核的工作频率对应的电压进行供电,并且由于第二处理器核的工作频率对应的电压相对较小,因此可以降低电子设备的功耗The processor scheduling method provided by the embodiment of the present application can realize that when the first processor core and the second processor core share one power domain, after the first processor core enters the idle state, it can be in the working state The voltage corresponding to the operating frequency of the second processor core is powered, and since the voltage corresponding to the operating frequency of the second processor core is relatively small, the power consumption of the electronic device can be reduced

请参阅图5,图5示出了本申请再一个实施例提供的处理器的调度方法的流程示意图。该处理器的调度方法应用于上述电子设备,下面将针对图5所示的流程进行详细的阐述,所述处理器的调度方法具体可以包括以下步骤:Referring to FIG. 5 , FIG. 5 shows a schematic flowchart of a processor scheduling method provided in another embodiment of the present application. The scheduling method of the processor is applied to the above-mentioned electronic equipment. The process shown in FIG. 5 will be described in detail below, and the scheduling method of the processor may specifically include the following steps:

步骤S410:若所述第一处理器核满足空闲状态对应的条件,且所述第二处理器核处于工作状态,获取当前所述第一处理器核的工作频率作为第一频率。Step S410: if the first processor core satisfies the condition corresponding to the idle state and the second processor core is in the working state, obtain the current working frequency of the first processor core as the first frequency.

步骤S420:获取所述第二处理器核的工作频率作为第二频率。Step S420: Obtain the operating frequency of the second processor core as a second frequency.

步骤S430:若所述第一频率对应的电压大于所述第二频率对应的电压,将所述第一处理器核的工作频率调整为第三频率,其中,所述第三频率对应的电压小于所述第二频率对应的电压。Step S430: If the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, adjust the operating frequency of the first processor core to a third frequency, wherein the voltage corresponding to the third frequency is less than The voltage corresponding to the second frequency.

在本申请实施例中,步骤S410至步骤S430可以参阅前述实施例的内容,在此不再赘述。In the embodiment of the present application, reference may be made to the contents of the foregoing embodiments for steps S410 to S430, and details are not repeated here.

步骤S440:若所述第一处理器核满足工作状态对应的条件,将所述第一处理器核的工作频率调整为所述第一频率。Step S440: If the first processor core satisfies the condition corresponding to the working state, adjust the working frequency of the first processor core to the first frequency.

在本申请实施例中,第一处理器核满足空闲状态对应的条件,第二处理器核处于工作状态,且第一处理器核的工作频率对应的电压大于第二处理器核的工作频率对应的电压的情况下,将第一处理器核的工作频率降低至第三频率之后,还可以在第一处理器核满足工作状态对应的条件的情况下,将第一处理器核的工作频率调整回此前的第一频率。可以理解地,第一处理器核可能在退出空闲状态后,其处于工作状态时需求以较高的工作频率运行,因此可以将其调整回此前的第一频率,以保证第一处理器核能够顺畅地执行处理任务,从而保证性能。例如,第一处理器核为上述的超大核时,通常其运行时是需要处理较为复杂的处理任务,并且为保证处理效果会使用较高的工作频率运行,因此当超大核以较高频率进入空闲状态后,退出空闲状态时又会需求以较高的频率进行工作;又例如,第一处理器核的第一频率可能为其通常运行时的工作频率,因此可以在其在退出空闲状态后,可以将其调整回此前的第一频率;再例如,第一处理器核此前进入空闲状态,可能是处理任务被突然关闭,而间隔一段时长后,又需要继续处理此前的处理任务,因此在其在退出空闲状态后,可以将其调整回此前的第一频率,以保证该处理任务的正常处理。In this embodiment of the application, the first processor core satisfies the conditions corresponding to the idle state, the second processor core is in the working state, and the voltage corresponding to the operating frequency of the first processor core is greater than the voltage corresponding to the operating frequency of the second processor core. In the case of the voltage of the first processor core, after reducing the operating frequency of the first processor core to the third frequency, the operating frequency of the first processor core can also be adjusted when the first processor core meets the conditions corresponding to the working state Return to the previous first frequency. Understandably, after the first processor core exits the idle state, it needs to run at a higher operating frequency when it is in the working state, so it can be adjusted back to the previous first frequency to ensure that the first processor core can Smooth execution of processing tasks to ensure performance. For example, when the first processor core is the above-mentioned ultra-large core, it usually needs to handle more complex processing tasks during operation, and in order to ensure the processing effect, it will run at a higher operating frequency. Therefore, when the ultra-large core enters the After the idle state, it will be required to work at a higher frequency when exiting the idle state; for another example, the first frequency of the first processor core may be its operating frequency during normal operation, so it can be processed after exiting the idle state. , it can be adjusted back to the previous first frequency; another example, the first processor core entered the idle state before, it may be that the processing task was suddenly shut down, and after a period of time, it needs to continue processing the previous processing task, so in After it exits the idle state, it can be adjusted back to the previous first frequency to ensure normal processing of the processing task.

在一些实施方式中,在以上确定出第一频率对应的电压大于第二频率对应的电压的情况下,将第一处理器核的工作频率调整为第三频率之后,还可以存储第一处理器核与第一频率的对应关系。由此,在第一处理器核满足工作状态对应的条件的情况下,可以基于存储的该对应关系,将第一处理器核的工作频率调整回至此前的第一频率。In some implementations, if it is determined above that the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, after adjusting the operating frequency of the first processor core to the third frequency, the first processor core may also be stored The corresponding relationship between the core and the first frequency. Thus, when the first processor core satisfies the condition corresponding to the working state, the working frequency of the first processor core may be adjusted back to the previous first frequency based on the stored correspondence.

在一些实施方式中,可以在第一处理器核即将由空闲状态进入工作状态时,执行将第一处理器核的工作频率调整为第一频率,以便提前将第一处理器核调整回第一频率,由此可以保证第一处理器核进入工作状态后可以理解以第一频率运行,从而对处理任务进行处理。其中,可以获取第一处理器核由空闲状态进入工作状态的概率作为第二概率;若第二概率大于第二预设概率,将所述第一处理器核的工作频率调整为所述第一频率。In some embodiments, when the first processor core is about to enter the working state from the idle state, the operating frequency of the first processor core may be adjusted to the first frequency, so as to adjust the first processor core back to the first frequency in advance. frequency, so that it can be ensured that the first processor core can understand to run at the first frequency after entering the working state, so as to process the processing task. Wherein, the probability that the first processor core enters the working state from the idle state can be obtained as the second probability; if the second probability is greater than the second preset probability, the operating frequency of the first processor core is adjusted to the first frequency.

在该实施方式中,第一处理器核由空闲状态进入工作状态的概率,表示了第一处理器核当前进入工作状态的可能性,该概率越高,则表示其越可能进入工作状态。In this embodiment, the probability that the first processor core enters the working state from the idle state indicates the possibility that the first processor core currently enters the working state, and the higher the probability, the more likely it is to enter the working state.

作为一种实施方式,可以获取处理器的负载量,以根据处理器的负载量确定上述概率。其中,该负载量可以是通过设备中的任务负载跟踪(per-entity load tracking,PELT)模块获取。可选地,可以利用处理器的利用率描述处理器的负载,例如,用于描述处理器负载的数值可以是处理器核的利用率的数值。由于第一处理器核为处理能力相对较强的处理器核,因此在处理器负载量较大时,其进入工作状态的可能性也就越大,因此可以基于处理器的负载量确定上述概率,且该概率与处理器的负载量呈正相关。As an implementation manner, the load of the processor may be obtained, so as to determine the above probability according to the load of the processor. Wherein, the load amount may be acquired through a task load tracking (per-entity load tracking, PELT) module in the device. Optionally, the utilization rate of the processor may be used to describe the load of the processor, for example, the value used to describe the processor load may be the value of the utilization rate of the processor core. Since the first processor core is a processor core with relatively strong processing capability, it is more likely to enter the working state when the processor load is larger, so the above probability can be determined based on the processor load , and the probability is positively correlated with the processor load.

在另一些实施方式中,也可以在第一处理器核进入工作状态时,执行将第一处理器核的工作频率调整为第一频率,以保证第一处理器核进入工作状态后可以理解以第一频率运行,从而对处理任务进行处理。可选地,由于处理器核的工作状态由调度器进行调度,即调度器根据产生的处理任务,确定需要工作的处理器核,以及控制处理器核的工作频率,因此,可以在调度器控制第一处理器核进入工作状态时,确定第一处理器核将要进入工作状态。In some other implementation manners, it is also possible to adjust the operating frequency of the first processor core to the first frequency when the first processor core enters the working state, so as to ensure that the first processor core can understand the The first frequency runs so as to process the processing tasks. Optionally, since the working state of the processor core is scheduled by the scheduler, that is, the scheduler determines the processor core that needs to work and controls the operating frequency of the processor core according to the generated processing tasks, therefore, the scheduler can control When the first processor core enters the working state, it is determined that the first processor core is about to enter the working state.

需要说明的是,本申请实施例中的步骤S440也可以应用于其他实施例中,也就是说,在将第一处理器核的工作频率调整至第三频率后,可以在第一处理器核满足工作状态对应的条件的情况下,将第一处理器核的工作频率调整为第一频率。It should be noted that step S440 in the embodiment of the present application can also be applied in other embodiments, that is, after the operating frequency of the first processor core is adjusted to the third frequency, the first processor core can If the condition corresponding to the working state is satisfied, the working frequency of the first processor core is adjusted to the first frequency.

本申请实施例提供的处理器的调度方法,可以实现第一处理器核以及第二处理器核共用一路电源域,由此减少电源模块的数量,降低成本。并且在处理能力相对较强的第一处理器核进入空闲状态时,能够以处于工作状态的第二处理器核的工作频率对应的电压进行供电,并且由于第二处理器核的工作频率对应的电压相对较小,因此可以降低电子设备的功耗。另外,在第一处理器核退出空闲状态进入工作状态的情况下,将第一处理器核的工作频率调高至第一频率,由此保证了处理性能。The processor scheduling method provided in the embodiment of the present application can realize that the first processor core and the second processor core share one power domain, thereby reducing the number of power modules and reducing the cost. And when the first processor core with relatively strong processing capability enters the idle state, it can supply power with the voltage corresponding to the operating frequency of the second processor core in the working state, and because the operating frequency of the second processor core corresponds to The voltage is relatively small, so it can reduce the power consumption of electronic equipment. In addition, when the first processor core exits the idle state and enters the working state, the operating frequency of the first processor core is adjusted to the first frequency, thereby ensuring processing performance.

请参阅图6,图6示出了本申请又另一个实施例提供的处理器的调度方法的流程示意图。该处理器的调度方法应用于上述电子设备,下面将针对图6所示的流程进行详细的阐述,所述处理器的调度方法具体可以包括以下步骤:Referring to FIG. 6 , FIG. 6 shows a schematic flowchart of a processor scheduling method provided in yet another embodiment of the present application. The scheduling method of the processor is applied to the above-mentioned electronic equipment, and the process shown in FIG. 6 will be described in detail below, and the scheduling method of the processor may specifically include the following steps:

步骤S510:若所述第一处理器核满足空闲状态对应的条件,且所述第二处理器核处于工作状态,获取当前所述第一处理器核的工作频率作为第一频率。Step S510: If the first processor core satisfies the condition corresponding to the idle state and the second processor core is in the working state, obtain the current working frequency of the first processor core as the first frequency.

在本申请实施例中,步骤S510可以参阅前述实施例的内容,在此不再赘述。In the embodiment of the present application, for step S510, reference may be made to the content of the foregoing embodiments, and details are not repeated here.

步骤S520:在所述第二处理器核的当前负载量低于预设负载量时,将所述第二处理器的工作频率调整至第二频率。Step S520: When the current load of the second processor core is lower than a preset load, adjust the operating frequency of the second processor to a second frequency.

在本申请实施例中,对于同一电源域中包括第一处理器核以及第二处理器核,且第一处理器核的处理能力高于第二处理器核的处理能力,该情况下,若第一处理器核进行空闲状态,则可能因为当前处理器的负载减小,第二处理器核也可能降低工作频率。因此,调度器可以获取第二处理器核的当前负载量,以确定当前负载量是否低于预设负载量;若当前负载量低于预设负载量,则可以将第二处理器核的工作频率调整至第二频率,由此使得处理器核的工作状态与处理器核的负载量对应。In this embodiment of the application, if the first processor core and the second processor core are included in the same power domain, and the processing capability of the first processor core is higher than that of the second processor core, in this case, if When the first processor core is in the idle state, the second processor core may also reduce the operating frequency because the load of the current processor is reduced. Therefore, the scheduler can acquire the current load of the second processor core to determine whether the current load is lower than the preset load; if the current load is lower than the preset load, the work of the second processor core can be The frequency is adjusted to the second frequency, so that the working state of the processor core corresponds to the load of the processor core.

步骤S530:获取所述第二处理器核的工作频率作为第二频率。Step S530: Obtain the operating frequency of the second processor core as a second frequency.

步骤S540:若所述第一频率对应的电压大于所述第二频率对应的电压,将所述第一处理器核的工作频率调整为第三频率,其中,所述第三频率对应的电压小于所述第二频率对应的电压。Step S540: If the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, adjust the operating frequency of the first processor core to a third frequency, wherein the voltage corresponding to the third frequency is less than The voltage corresponding to the second frequency.

在本申请实施例中,步骤S530以及步骤S540可以参阅前述实施例的内容,在此不再赘述。In the embodiment of the present application, reference may be made to the contents of the foregoing embodiments for step S530 and step S540, and details are not repeated here.

在一些场景中,第一处理器核可以为上述的超大核,第二处理器核可以为上述的大核,则可以实现当超大核由较高的频率进入空闲状态时,当大核此时调整到一个较低的频点,此时超大核的工作频率对应的电压大于大核的工作频率对应的电压,对超大核的工作频率进行调整,从而使得后续能够以大核的工作频率对应的电压进行供电,进而降低功耗。In some scenarios, the first processor core can be the above-mentioned super large core, and the second processor core can be the above-mentioned large core, then it can be realized that when the super large core enters the idle state from a higher frequency, when the large core at this time Adjust to a lower frequency point. At this time, the voltage corresponding to the operating frequency of the super-large core is greater than the voltage corresponding to the operating frequency of the large core. Adjust the operating frequency of the super-large core so that the follow-up can use the operating frequency of the large core Voltage for power supply, thereby reducing power consumption.

在一些实施方式中,电子设备还可以包括其他电源域,如,前述第一处理器核以及第二处理器核对应的电源域为第一电源域,电子设备还包括第二电源域、第三电源域等;处理器还包括其他处理器核,例如第三处理器核、第四处理器核等。其他处理器核可以被分配至其他电源域中,例如,第三处理器核以及第四处理器核可以共用第二电源域,在第一频率对应的电压大于第二频率对应的电压的情况下,还可以判断第二处理器核对应的负载量是否小于第四负载量阈值;若第二处理器核对应的负载量不小于(大于或等于)第四负载量阈值,表示当前第二处理器核对应的处理任务较多,因此第二处理器核可以继续按照以上第二频率处理任务,从而执行将第一处理器核的工作频率调整为第三频率,由此降低功耗;若第二处理器核对应的负载量小于第四负载量阈值,表示当前第二处理器核对应的处理任务较少,该情况下,可以将第二处理器核的处理任务迁移至其他电源域的处理器核中,例如,迁移至第二电源域中的第三处理器核,由此,使第一处理器核以及第二处理器核均进入空闲状态,此时第一处理器核以及第二处理器核对应的电源域即使以较高电压进行供电,但由于第一处理器核以及第二处理器核均为空闲状态,因此不会带来较大功耗,并且使任务分配更为合理。In some embodiments, the electronic device may also include other power domains. For example, the power domains corresponding to the aforementioned first processor core and the second processor core are the first power domain, and the electronic device further includes a second power domain, a third power domain, and a third power domain. power domain, etc.; the processor also includes other processor cores, such as a third processor core, a fourth processor core, and the like. Other processor cores can be assigned to other power domains. For example, the third processor core and the fourth processor core can share the second power domain. In the case that the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency , it can also be determined whether the load corresponding to the second processor core is less than the fourth load threshold; if the load corresponding to the second processor core is not less than (greater than or equal to) the fourth load threshold, it means that the current second processor core There are many processing tasks corresponding to the core, so the second processor core can continue to process the task according to the above second frequency, so as to adjust the operating frequency of the first processor core to the third frequency, thereby reducing power consumption; if the second The load corresponding to the processor core is less than the fourth load threshold, which means that the current processing tasks corresponding to the second processor core are less. In this case, the processing tasks of the second processor core can be migrated to processors in other power domains In the core, for example, migrate to the third processor core in the second power supply domain, thereby making both the first processor core and the second processor core enter the idle state, at this time the first processor core and the second processor core Even if the power supply domain corresponding to the processor core is powered by a higher voltage, since the first processor core and the second processor core are both in an idle state, no large power consumption will be brought, and the task allocation will be more reasonable.

本申请实施例提供的处理器的调度方法,可以实现第一处理器核以及第二处理器核共用一路电源域,由此减少电源模块的数量,降低成本。并且在处理能力相对较强的第一处理器核进入空闲状态时,且第二处理器核的工作频率产生调整时,能够以处于工作状态的第二处理器核的工作频率对应的电压进行供电,并且由于第二处理器核的工作频率对应的电压相对较小,因此可以降低电子设备的功耗。The processor scheduling method provided in the embodiment of the present application can realize that the first processor core and the second processor core share one power domain, thereby reducing the number of power modules and reducing the cost. And when the first processor core with relatively strong processing capability enters the idle state and the operating frequency of the second processor core is adjusted, the voltage corresponding to the operating frequency of the second processor core in the working state can be used for power supply , and since the voltage corresponding to the working frequency of the second processor core is relatively small, the power consumption of the electronic device can be reduced.

请参阅图7,其示出了本申请实施例提供的一种处理器的调度装置400的结构框图。该处理器的调度装置400应用上述的电子设备,应用于电子设备,所述电子设备的处理器包括第一处理器核以及第二处理器核,所述第一处理器核以及所述第二处理器核共用一路电源域,所述第一处理器核的处理能力高于所述第二处理器核的处理能力,该处理器的调度装置400包括:第一频率获取模块410、第二频率获取模块420以及频率调整模块430。其中,所述第一频率获取模块410用于若所述第一处理器核满足空闲状态对应的条件,且所述第二处理器核处于工作状态,获取当前所述第一处理器核的工作频率作为第一频率;所述第二频率获取模块420用于获取所述第二处理器核的工作频率作为第二频率;所述频率调整模块430用于若所述第一频率对应的电压大于所述第二频率对应的电压,将所述第一处理器核的工作频率调整为第三频率,其中,所述第三频率对应的电压小于所述第二频率对应的电压。Please refer to FIG. 7 , which shows a structural block diagram of a processor scheduling apparatus 400 provided in an embodiment of the present application. The processor scheduling device 400 is applied to the above-mentioned electronic equipment, and is applied to the electronic equipment. The processor of the electronic equipment includes a first processor core and a second processor core, and the first processor core and the second processor core The processor cores share one power domain, the processing capability of the first processor core is higher than that of the second processor core, and the scheduling device 400 of the processor includes: a first frequency acquisition module 410, a second frequency An acquisition module 420 and a frequency adjustment module 430 . Wherein, the first frequency acquiring module 410 is configured to acquire the current working frequency of the first processor core if the first processor core satisfies the condition corresponding to the idle state and the second processor core is in the working state. frequency as the first frequency; the second frequency obtaining module 420 is used to obtain the operating frequency of the second processor core as the second frequency; the frequency adjustment module 430 is used to if the voltage corresponding to the first frequency is greater than The voltage corresponding to the second frequency adjusts the operating frequency of the first processor core to a third frequency, wherein the voltage corresponding to the third frequency is smaller than the voltage corresponding to the second frequency.

在一些实施方式中,第一频率获取模块410可以用于:若所述第一处理器核处于工作状态,获取所述第一处理器核由工作状态进入空闲状态的概率作为第一概率;若所述第一概率大于第一预设概率,且所述第二处理器核处于工作状态,获取当前所述第一处理器核的工作频率作为第一频率。In some implementations, the first frequency obtaining module 410 may be configured to: if the first processor core is in the working state, obtain the probability that the first processor core enters the idle state from the working state as the first probability; if The first probability is greater than a first preset probability, and the second processor core is in a working state, and the current working frequency of the first processor core is acquired as the first frequency.

在一种可能的实施方式中,第一频率获取模块410获取所述第一处理器核由工作状态进入空闲状态的概率作为第一概率,可以包括:获取所述处理器的任务队列;基于所述任务队列中所述第一处理器核对应的处理任务,确定所述第一处理器核由工作状态进入空闲状态的概率作为第一概率,所述概率与所述处理任务的数量呈负相关。In a possible implementation manner, the first frequency obtaining module 410 obtains the probability that the first processor core enters the idle state from the working state as the first probability, which may include: obtaining the task queue of the processor; The processing tasks corresponding to the first processor core in the task queue, determine the probability that the first processor core enters the idle state from the working state as the first probability, and the probability is negatively correlated with the number of processing tasks .

在一些实施方式中,第一频率获取模块410可以用于:若所述第一处理器核进入空闲状态,且所述第二处理器核处于工作状态,获取当前所述第一处理器核的工作频率作为第一频率。In some implementations, the first frequency acquiring module 410 may be configured to: if the first processor core enters the idle state and the second processor core is in the working state, acquire the current frequency of the first processor core The working frequency is used as the first frequency.

在一些实施方式中,频率调整模块430还可以用于在所述若所述第一频率对应的电压大于所述第二频率对应的电压,将所述第一处理器核的工作频率调整为第三频率之后,若所述第一处理器核满足工作状态对应的条件,将所述第一处理器核的工作频率调整为所述第一频率。In some implementations, the frequency adjustment module 430 may also be configured to adjust the operating frequency of the first processor core to the second frequency if the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency. After three frequencies, if the first processor core satisfies a condition corresponding to the working state, adjust the working frequency of the first processor core to the first frequency.

在一种可能的实施方式中,频率调整模块430还可以用于:获取所述第一处理器核由空闲状态进入工作状态的概率作为第二概率;若所述第二概率大于第二预设概率,将所述第一处理器核的工作频率调整为所述第一频率。In a possible implementation manner, the frequency adjustment module 430 may also be configured to: acquire the probability that the first processor core enters the working state from the idle state as the second probability; if the second probability is greater than the second preset probability, adjusting the operating frequency of the first processor core to the first frequency.

在一种可能的实施方式中,频率调整模块430还可以用于:若所述第一处理器核由空闲状态进入工作状态,将所述第一处理器核的工作频率调整为所述第一频率。In a possible implementation manner, the frequency adjustment module 430 may also be configured to: adjust the operating frequency of the first processor core to the first frequency.

在一种可能的实施方式中,该处理器的调度装置400还可以包括:频率存储模块。频率存储模块可以用于:在所述若所述第一频率对应的电压大于所述第二频率对应的电压,将所述第一处理器核的工作频率调整为第三频率之后,存储所述第一处理器核与所述第一频率的对应关系。频率调整模块430可以用于:若所述第一处理器核满足工作状态对应的条件,基于所述对应关系,将所述第一处理器核的工作频率调整为所述第一频率。In a possible implementation manner, the processor scheduling apparatus 400 may further include: a frequency storage module. The frequency storage module may be used for: after adjusting the operating frequency of the first processor core to a third frequency if the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, storing the Correspondence between the first processor core and the first frequency. The frequency adjustment module 430 may be configured to: adjust the operating frequency of the first processor core to the first frequency based on the corresponding relationship if the first processor core satisfies a condition corresponding to the working state.

在一些实施方式中,频率调整模块430还可以用于在所述获取所述第二处理器核的工作频率作为第二频率之前,在所述第二处理器核的当前负载量低于预设负载量时,将所述第二处理器的工作频率调整至所述第二频率。In some implementations, the frequency adjustment module 430 may also be configured to, before acquiring the operating frequency of the second processor core as the second frequency, when the current load of the second processor core is lower than the preset When the load is large, the operating frequency of the second processor is adjusted to the second frequency.

在一些实施方式中,该处理器的调度装置400还可以包括:电源确定模块以及电压调整模块。电源确定模块用于在所述若所述第一频率对应的电压大于所述第二频率对应的电压,将所述第一处理器核的工作频率调整为第三频率之后,基于所述第三频率对应的电压以及所述第二频率对应的电压,确定所述电源域对应的供电电压为所述第二频率对应的电压;电压调整模块用于调整所述电源域的供电电压为所述第二频率对应的电压。In some implementations, the processor scheduling device 400 may further include: a power supply determination module and a voltage adjustment module. The power supply determination module is configured to adjust the operating frequency of the first processor core to a third frequency if the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, based on the third The voltage corresponding to the frequency and the voltage corresponding to the second frequency determine that the power supply voltage corresponding to the power domain is the voltage corresponding to the second frequency; the voltage adjustment module is used to adjust the power supply voltage of the power domain to the first The voltage corresponding to the second frequency.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the devices and modules described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other forms of coupling.

另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.

综上所述,本申请提供的方案,电子设备的处理器包括共用一路电源域的第一处理器核以及第二处理器核,且第一处理器核的处理能力高于第二处理器核的处理能力,在第一处理器核满足空闲状态对应的条件,且第二处理器核处于工作状态的情况下,获取当前第一处理器核的工作频率作为第一频率,获取第二处理器核的工作频率作为第二频率,若第一频率对应的电压大于第二频率对应的电压,将第一处理器核的工作频率调整为第三频率,其中,第三频率对应的电压小于第二频率对应的电压。由此,可以实现第一处理器核以及第二处理器核共用一路电源域的情况下,在第一处理器核进入空闲状态时,能够以处于工作状态的第二处理器核的工作频率对应的电压进行供电,并且由于第二处理器核的工作频率对应的电压相对较小,因此可以降低电子设备的功耗。To sum up, in the solution provided by this application, the processor of the electronic device includes a first processor core and a second processor core sharing one power supply domain, and the processing capability of the first processor core is higher than that of the second processor core processing capability, when the first processor core satisfies the conditions corresponding to the idle state and the second processor core is in the working state, the current operating frequency of the first processor core is obtained as the first frequency, and the second processor core is obtained The operating frequency of the core is used as the second frequency. If the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, the operating frequency of the first processor core is adjusted to a third frequency, wherein the voltage corresponding to the third frequency is lower than the voltage corresponding to the second frequency. The voltage corresponding to the frequency. Thus, when the first processor core and the second processor core share one power supply domain, when the first processor core enters the idle state, the operating frequency of the second processor core in the working state can correspond to and the voltage corresponding to the working frequency of the second processor core is relatively small, so the power consumption of the electronic device can be reduced.

请参考图8,其示出了本申请实施例提供的一种电子设备的结构框图。该电子设备100可以是智能手机、平板电脑、智能手表、智能眼镜、笔记本电脑等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120、以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 8 , which shows a structural block diagram of an electronic device provided by an embodiment of the present application. The electronic device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, a smart watch, smart glasses, and a notebook computer. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein one or more application programs may be stored in the memory 120 and configured to be used by One or more processors 110 are executed, and one or more programs are configured to execute the methods described in the foregoing method embodiments.

处理器110可以包括多个处理器核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。其中,多个处理器核可以至少包括第一处理器核以及第二处理器核,所述第一处理器核以及所述第二处理器核共用一路电源域,所述第一处理器核的处理能力高于所述第二处理器核的处理能力。Processor 110 may include multiple processor cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 120, and calls data stored in the memory 120 to execute Various functions of the electronic device 100 and processing data. Wherein, the plurality of processor cores may at least include a first processor core and a second processor core, the first processor core and the second processor core share one power domain, and the first processor core The processing capability is higher than the processing capability of the second processor core.

可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。Optionally, the processor 110 may use at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware. The processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used to render and draw the displayed content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 110, but may be realized by a communication chip alone.

存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include a random access memory (Random Access Memory, RAM), and may also include a read-only memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area can also store data created during use of the electronic device 100 (such as phonebook, audio and video data, chat record data) and the like.

请参考图9,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 9 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program codes are stored in the computer-readable medium 800, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.

计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium). The computer-readable storage medium 800 has a storage space for program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products. Program code 810 may, for example, be compressed in a suitable form.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims (13)

1. A scheduling method of a processor is applied to an electronic device, wherein the processor of the electronic device includes a first processor core and a second processor core, the first processor core and the second processor core share a power domain, and a processing capability of the first processor core is higher than a processing capability of the second processor core, and the method includes:
if the first processor core meets the condition corresponding to the idle state and the second processor core is in the working state, acquiring the working frequency of the current first processor core as a first frequency;
acquiring the working frequency of the second processor core as a second frequency;
if the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, the operating frequency of the first processor core is adjusted to a third frequency, wherein the voltage corresponding to the third frequency is less than the voltage corresponding to the second frequency.
2. The method of claim 1, wherein the obtaining the current operating frequency of the first processor core as the first frequency if the first processor core meets the condition corresponding to the idle state and the second processor core is in the operating state comprises:
if the first processor core is in a working state, acquiring the probability that the first processor core enters an idle state from the working state as a first probability;
and if the first probability is greater than a first preset probability and the second processor core is in a working state, acquiring the current working frequency of the first processor core as a first frequency.
3. The method of claim 2, wherein obtaining, as the first probability, the probability that the first processor core enters the idle state from the operating state comprises:
acquiring a task queue of the processor;
and determining the probability of the first processor core entering an idle state from a working state as a first probability based on the processing tasks corresponding to the first processor core in the task queue, wherein the probability is in negative correlation with the number of the processing tasks.
4. The method of claim 1, wherein the obtaining the current operating frequency of the first processor core as the first frequency if the first processor core meets the condition corresponding to the idle state and the second processor core is in the operating state comprises:
and if the first processor core enters an idle state and the second processor core is in a working state, acquiring the current working frequency of the first processor core as a first frequency.
5. The method of claim 1, wherein after the adjusting the operating frequency of the first processor core to a third frequency if the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, the method further comprises:
and if the first processor core meets the condition corresponding to the working state, adjusting the working frequency of the first processor core to the first frequency.
6. The method of claim 5, wherein the adjusting the operating frequency of the first processor core to the first frequency if the first processor core meets the condition corresponding to the operating state comprises:
acquiring the probability of the first processor core entering a working state from an idle state as a second probability;
and if the second probability is greater than a second preset probability, adjusting the working frequency of the first processor core to the first frequency.
7. The method of claim 5, wherein the adjusting the operating frequency of the first processor core to the first frequency if the first processor core meets the condition corresponding to the operating state comprises:
and if the first processor core enters a working state from an idle state, adjusting the working frequency of the first processor core to the first frequency.
8. The method of claim 5, wherein after the adjusting the operating frequency of the first processor core to a third frequency if the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, the method further comprises:
storing the corresponding relation between the first processor core and the first frequency;
if the first processor core meets the condition corresponding to the working state, the adjusting the working frequency of the first processor core to the first frequency comprises the following steps:
and if the first processor core meets the condition corresponding to the working state, adjusting the working frequency of the first processor core to the first frequency based on the corresponding relation.
9. The method of any of claims 1-8, wherein prior to the obtaining the operating frequency of the second processor core as the second frequency, the method further comprises:
and when the current load capacity of the second processor core is lower than a preset load capacity, adjusting the working frequency of the second processor to the second frequency.
10. The method of any of claims 1-8, wherein after the adjusting the operating frequency of the first processor core to a third frequency if the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, the method further comprises:
determining the power supply voltage corresponding to the power domain as the voltage corresponding to the second frequency based on the voltage corresponding to the third frequency and the voltage corresponding to the second frequency;
and adjusting the power supply voltage of the power domain to be the voltage corresponding to the second frequency.
11. A scheduling apparatus of a processor, applied to an electronic device, where the processor of the electronic device includes a first processor core and a second processor core, the first processor core and the second processor core share a power domain, and a processing capability of the first processor core is higher than a processing capability of the second processor core, the apparatus includes: a first frequency acquisition module, a second frequency acquisition module, and a frequency adjustment module, wherein,
the first frequency obtaining module is used for obtaining the current working frequency of the first processor core as a first frequency if the first processor core meets the condition corresponding to the idle state and the second processor core is in the working state;
the second frequency acquisition module is used for acquiring the working frequency of the second processor core as a second frequency;
the frequency adjustment module is configured to adjust the operating frequency of the first processor core to a third frequency if the voltage corresponding to the first frequency is greater than the voltage corresponding to the second frequency, where the voltage corresponding to the third frequency is less than the voltage corresponding to the second frequency.
12. An electronic device, comprising:
one or more processors comprising a first processor core and a second processor core;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-10.
13. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 10.
CN202110969985.9A 2021-08-23 2021-08-23 Scheduling method and device of processor, electronic equipment and storage medium Pending CN115712337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110969985.9A CN115712337A (en) 2021-08-23 2021-08-23 Scheduling method and device of processor, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110969985.9A CN115712337A (en) 2021-08-23 2021-08-23 Scheduling method and device of processor, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115712337A true CN115712337A (en) 2023-02-24

Family

ID=85230274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110969985.9A Pending CN115712337A (en) 2021-08-23 2021-08-23 Scheduling method and device of processor, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115712337A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116414215A (en) * 2023-06-05 2023-07-11 荣耀终端有限公司 Frequency modulation method and frequency modulation device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116414215A (en) * 2023-06-05 2023-07-11 荣耀终端有限公司 Frequency modulation method and frequency modulation device
CN116414215B (en) * 2023-06-05 2023-10-20 荣耀终端有限公司 Frequency modulation method and frequency modulation device

Similar Documents

Publication Publication Date Title
CN115599513B (en) Resource scheduling method and electronic equipment
US9697124B2 (en) Systems and methods for providing dynamic cache extension in a multi-cluster heterogeneous processor architecture
JP6509895B2 (en) Resource management based on device specific or user specific resource usage profile
CN106415498B (en) Virtual machine power management
US20170212581A1 (en) Systems and methods for providing power efficiency via memory latency control
CN113424256B (en) Adaptive management of broadcast requests and/or user inputs on rechargeable devices
US20130275785A1 (en) Memory control apparatus, memory control method, information processing apparatus and program
CN116028210B (en) Resource scheduling method, electronic equipment and storage medium
CN116578422B (en) Resource allocation method and electronic equipment
WO2016182683A1 (en) System and method for dynamic granularity control of parallelized work in a portable computing device (pcd)
US10539995B2 (en) Performance boosting method and system of semiconductor device
CN110795323A (en) Load statistical method, device, storage medium and electronic equipment
CN115712337A (en) Scheduling method and device of processor, electronic equipment and storage medium
CN116028211A (en) Display card scheduling method, electronic equipment and computer readable storage medium
CN106125889A (en) A wake-up source processing method and device
CN107391254B (en) Intelligent terminal, resource allocation method thereof and computer-readable storage medium
EP2945064A1 (en) Method and mobile device for application automatically adapting to mode of multi-core processor
CN111459634B (en) Task scheduling method, device, terminal and storage medium
CN116027880A (en) Resource scheduling method and electronic device
CN110795383A (en) SoC frequency control method, device, terminal and storage medium
CN113656177A (en) Control method and electronic device
WO2021081813A1 (en) Multi-core processor and scheduling method therefor, device, and storage medium
CN112860352A (en) Application loading method and device, storage medium and terminal
JP2018505489A (en) Dynamic memory utilization in system on chip
US20240330061A1 (en) Systems and methods for prioritizing and assigning threads in a heterogeneous processor architecture

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20241014

Address after: 6th Floor, No.1 Chongqing Road, Banqiao District, Xinbei City, Taiwan, China, China

Applicant after: Weiguang Co.,Ltd.

Country or region after: Samoa

Address before: 200120 room 01, 8th floor (7th floor, real estate registration floor), No. 1, Lane 61, shengxia Road, pilot Free Trade Zone, Pudong New Area, Shanghai

Applicant before: Zheku Technology (Shanghai) Co.,Ltd.

Country or region before: China