CN106066813B - Resource scheduling device, mobile terminal and resource scheduling method - Google Patents

Resource scheduling device, mobile terminal and resource scheduling method Download PDF

Info

Publication number
CN106066813B
CN106066813B CN201610363761.2A CN201610363761A CN106066813B CN 106066813 B CN106066813 B CN 106066813B CN 201610363761 A CN201610363761 A CN 201610363761A CN 106066813 B CN106066813 B CN 106066813B
Authority
CN
China
Prior art keywords
central processing
processing unit
temperature
preset
curvature
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.)
Active
Application number
CN201610363761.2A
Other languages
Chinese (zh)
Other versions
CN106066813A (en
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610363761.2A priority Critical patent/CN106066813B/en
Publication of CN106066813A publication Critical patent/CN106066813A/en
Application granted granted Critical
Publication of CN106066813B publication Critical patent/CN106066813B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5066Algorithms for mapping a plurality of inter-dependent sub-tasks onto a plurality of physical CPUs

Abstract

The invention discloses a resource scheduling method, which comprises the following steps: acquiring the curvature of the change of the core temperature of a central processing unit of the mobile terminal in a specified time period; adjusting the reference frequency of the central processor operation according to the curvature; acquiring the current operating frequency of the central processing unit and the current temperature of the kernel at intervals of first preset time; and when the current operating frequency is greater than the reference frequency, correspondingly adjusting the operating frequency of the central processing unit according to the size relation between the current temperature and the preset core closing temperature, so as to perform application resource scheduling according to the adjusted operating frequency of the central processing unit. The invention also discloses a resource scheduling device and a mobile terminal. The invention improves the resource utilization rate and the service life of the mobile terminal.

Description

Resource scheduling device, mobile terminal and resource scheduling method
Technical Field
The present invention relates to the technical field of mobile terminal devices, and in particular, to a resource scheduling apparatus, a mobile terminal, and a resource scheduling method.
Background
At present, as the functions of the mobile terminal become more and more rich, more and more resources are consumed by the related application programs during running, and meanwhile, the response speed of people to the application programs is more and more sensitive. In the resource scheduling of the conventional mobile terminal system, in consideration of power consumption, heat dissipation and other factors, a method of limiting the frequency by using a switch core or a Central Processing Unit (CPU) is mostly adopted, but this may reduce the response speed of the application program.
When the mobile terminal runs a certain application program and consumes memory resources, the CPU reaches a closing threshold value and is automatically closed. For this situation, the conventional solution includes: (1) the CPU core is always kept fully open, temperature influence is not considered, and the CPU core is not closed even if the temperature exceeds a closing threshold value. This results in a higher response speed, but at the cost of higher power consumption and heat generation, and also reduces the lifetime of the terminal device. (2) The temperature influence of each CPU is considered, and when the temperature influence exceeds a threshold value, the CPU is closed, so that low power consumption and heat generation are kept to the maximum extent, but the performance of the application is reduced, and the utilization rate of resources is low.
Disclosure of Invention
The invention mainly aims to provide a resource scheduling device, a mobile terminal and a resource scheduling method, aiming at improving the resource utilization rate and the service life of the mobile terminal.
In order to achieve the above object, the present invention provides a resource scheduling apparatus, including:
the curvature acquisition module is used for acquiring the curvature of the change of the core temperature of the central processing unit of the mobile terminal in a specified time period;
the reference frequency adjusting module is used for adjusting the reference frequency of the operation of the central processing unit according to the curvature;
the frequency and temperature acquisition module is used for acquiring the current operating frequency of the central processing unit and the current temperature of the kernel at intervals of first preset time;
and the operating frequency adjusting module is used for correspondingly adjusting the operating frequency of the central processing unit according to the magnitude relation between the current temperature and the preset core closing temperature when the current operating frequency is greater than the reference frequency, so as to schedule the application resources according to the operating frequency adjusted by the central processing unit.
Optionally, the reference frequency adjusting module is further configured to, when the curvature is greater than a first preset curvature value, decrease the reference frequency of the central processing unit by a first preset value; when the curvature is smaller than a second preset curvature value, increasing the reference frequency of the central processing unit by a second preset value; the second preset curvature value is smaller than the first preset curvature value.
Optionally, the operating frequency adjusting module includes:
the first adjusting unit is used for reducing the operating frequency of the central processing unit to the reference frequency when the current operating frequency is greater than the reference frequency and the current temperature reaches a first preset percentage of the core closing temperature;
and the second adjusting unit is used for acquiring the new temperature of the kernel, and when the new temperature is reduced to a second preset percentage of the shutdown temperature of the kernel, the operating frequency of the central processing unit is increased by a preset frequency value every second preset time.
Optionally, the resource scheduling apparatus further includes:
and the processing module is used for acquiring the total consumption amount of the mobile terminal resources at intervals of a third preset time, and acquiring the temperature of the kernel in a specified time period when the total consumption amount is greater than the preset consumption amount.
In addition, in order to achieve the above object, the present invention further provides a mobile terminal, which includes the resource scheduling apparatus with the above structure.
In addition, to achieve the above object, the present invention further provides a resource scheduling method, including:
acquiring the curvature of the change of the core temperature of a central processing unit of the mobile terminal in a specified time period;
adjusting the reference frequency of the central processor operation according to the curvature;
acquiring the current operating frequency of the central processing unit and the current temperature of the kernel at intervals of first preset time;
and when the current operating frequency is greater than the reference frequency, correspondingly adjusting the operating frequency of the central processing unit according to the size relation between the current temperature and the preset core closing temperature, so as to perform application resource scheduling according to the adjusted operating frequency of the central processing unit.
Optionally, the adjusting the reference frequency of the central processor operation according to the curvature includes:
when the curvature is larger than a first preset curvature value, reducing the reference frequency of the central processing unit by a first preset value;
when the curvature is smaller than a second preset curvature value, increasing the reference frequency of the central processing unit by a second preset value; the second preset curvature value is smaller than the first preset curvature value.
Optionally, when the current operating frequency is greater than the reference frequency, correspondingly adjusting the operating frequency of the central processing unit according to a size relationship between the current temperature and a preset core shutdown temperature, so as to perform application resource scheduling according to the operating frequency adjusted by the central processing unit, including:
when the current operating frequency is greater than the reference frequency and the current temperature reaches a first preset percentage of the core closing temperature, reducing the operating frequency of the central processing unit to the reference frequency;
and acquiring the new temperature of the core, and increasing the running frequency of the central processing unit by a preset frequency value every second preset time when the new temperature is reduced to a second preset percentage of the closing temperature of the core.
Optionally, the obtaining the curvature of the change of the core temperature of the central processing unit of the mobile terminal in a specified time period comprises:
and acquiring the total consumption amount of the mobile terminal resources every a third preset time, and acquiring the temperature of the kernel in a specified time period when the total consumption amount is greater than the preset consumption amount.
Optionally, before the adjusting the reference frequency of the central processing unit operation according to the curvature, the method includes:
setting a third preset percentage of the maximum operating frequency of the central processing unit as the reference frequency.
After the mobile terminal adjusts the reference frequency of the operation of the central processing unit through the curvature of the change of the core temperature of the central processing unit in the appointed time period, the mobile terminal compares the current operation frequency of the central processing unit obtained at intervals of a first preset time with the reference frequency, compares the current temperature of the core obtained with the preset core closing temperature, and adjusts the operation frequency of the central processing unit according to the comparison result, so that the mobile terminal can carry out resource scheduling according to the adjusted operation frequency of the central processing unit. The fluctuation of the core temperature in a proper range is realized, all cores of the mobile terminal are ensured to work, the resource utilization rate of the mobile terminal is improved, and the service life of the mobile terminal is prolonged.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal for implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication device of the mobile terminal shown in FIG. 1;
FIG. 3 is a functional block diagram of an embodiment of a resource scheduling apparatus according to the present invention;
FIG. 4 is a graph of the curvature of the core of the present invention as the temperature changes over time;
FIG. 5 is a functional block diagram of a resource scheduling apparatus according to another embodiment of the present invention;
FIG. 6 is a flowchart illustrating a resource scheduling method according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating a resource scheduling method according to another embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a notebook computer, a PDA (personal digital assistant), a PAD (tablet), a navigation device, and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an interface unit 120, a user input unit 130, an output unit 140, a memory 150, a controller 160, and a power supply unit 170, and the like. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication device or network. For example, the wireless communication unit may include at least one of a mobile communication module 111, a wireless internet module 112, and a short-range communication module 113.
The mobile communication module 111 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 112 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The short-range communication module 113 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetoothTMRadio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbeeTMAnd so on.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keypad, a dome sheet, a trigger pad (e.g., a touch-sensitive member that detects a change in resistance, pressure, capacitance, etc., due to being touched), a jog wheel, a jog stick, and the like. In particular, when the trigger plate is superimposed on the display unit 141 in the form of a layer, a trigger screen may be formed.
The interface unit 120 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 120 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 120 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 140 is configured to provide output signals (e.g., audio signals, video signals, vibration signals, etc.) in a visual, audio, and/or tactile manner.
The output unit 140 may include a display unit 141, and the display unit 141 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 141 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 141 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 141 and the trigger plate are stacked on each other in the form of a layer to form a trigger screen, the display unit 141 may function as an input device and an output device. The display unit 141 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The trigger screen may be used to detect a trigger input pressure as well as a trigger input position and a trigger input area.
The memory 150 may store software programs and the like for processing and controlling operations performed by the controller 160, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or is to be output. Also, the memory 150 may store data regarding various ways of vibration and audio signals that are output when a trigger is applied to the trigger screen.
The memory 150 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 150 through a network connection.
The controller 160 generally controls the overall operation of the mobile terminal. For example, the controller 160 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 160 may include a multimedia module 161 for reproducing (or playing back) multimedia data, and the multimedia module 161 may be constructed within the controller 160 or may be constructed separately from the controller 160. The controller 160 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the trigger screen as a character or an image.
The power supply unit 170 receives external power or internal power and provides appropriate power required to operate the respective elements and components under the control of the controller 160.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 160. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in memory 150 and executed by controller 160.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication means such as wired and wireless communication means and satellite-based communication means that transmit data via frames or packets.
A communication apparatus in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication devices may use different air interfaces and/or physical layers. For example, the air interface used by the communication device includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and universal mobile telecommunications device (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and so forth. The following description relates to a CDMA communication device, as a non-limiting example, but such teachings are equally applicable to other types of devices.
Referring to fig. 2, the CDMA wireless communication apparatus may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that an apparatus as shown in fig. 2 may include a plurality of BSCs 275.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz,5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a base transceiver sub-assembly (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the apparatus. In fig. 2, several global positioning device (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. Other techniques that can track the location of the mobile terminal may be used instead of or in addition to GPS tracking techniques. In addition, at least one GPS satellite 300 may selectively or additionally process satellite DMB transmission.
As a typical operation of the wireless communication apparatus, the BS270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station 270 is processed within the particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270 to transmit forward link signals to the mobile terminal 100.
Based on the above-mentioned hardware structure of the mobile terminal and the structure of the communication device, the present invention provides various embodiments of the method.
Fig. 3 shows a first embodiment of a resource scheduling apparatus according to the present invention. The resource scheduling apparatus of this embodiment includes:
a curvature obtaining module 10, configured to obtain a curvature of a core temperature of a central processing unit of the mobile terminal changing within a specified time period;
in this embodiment, the type of the mobile terminal may be set according to actual needs, for example, a mobile terminal handset, an ipad, and the like. The mobile terminal comprises a resource scheduling device, and in the using process of the mobile terminal, the core temperature of a central processing unit of the mobile terminal may show different changes in different using time periods. For example, in the first period of time, when a user reads a document by using the mobile terminal, the power consumption of the mobile terminal is low, and the core temperature of the central processing unit is low. And in the second time period, the user uses the mobile terminal to play the game, the power consumption of the mobile terminal is higher, and the temperature of the inner core of the central processing unit is higher.
In order to adjust the reference frequency of the central processing unit, in an embodiment, the mobile terminal may detect the core temperature of the central processing unit in a certain period of time at regular intervals, and obtain the curvature of the core temperature change according to the core temperature in the period of time. In another embodiment, the core temperature of the central processing unit in a specified time period is detected if necessary, for example, when the mobile terminal runs in browsing pictures, the total consumption of resources of the mobile terminal is small, and then the curvature of the core temperature change does not need to be acquired; when the mobile terminal runs in a game scene, the total consumption of the mobile terminal resources is large, and at this time, the curvature of the change of the core temperature needs to be acquired. The curvature acquiring module 10 then acquires the curvature of the core temperature change in the specified time period according to the core temperature in the specified time period.
The curvature of the core temperature changing in different time periods is shown in fig. 4, the horizontal axis in fig. 4 is time, the vertical axis is the core temperature, and k1, k2, k3 and k4 respectively represent the curvature changing in different time periods, wherein, the curvature of the core temperature changing is larger in k1> k2> k3> k4, which indicates that the faster the core temperature rises, the shorter the time point of reaching the core closing temperature. Conversely, a smaller curvature of the core temperature change indicates a slower core temperature rise and a longer time to core shutdown.
A reference frequency adjusting module 20, configured to adjust a reference frequency of the central processing unit according to the curvature;
in this embodiment, the reference frequency of the central processing unit may be a default reference frequency, or may be a preset reference frequency of the central processing unit. Optionally, a third preset percentage of the maximum operating frequency of the central processing unit is set as the reference frequency, and the third preset percentage may be set to 80%, or may be flexibly set according to specific situations. For example, when the mobile terminal supports 8-core central processing units, and the maximum operating frequency of a single central processing unit is 2000Hz, the reference frequency of the central processing unit is set to 2000Hz × 80% — 1600 Hz.
After obtaining the curvature of the core temperature changing in the specified time period, the reference frequency adjusting module 20 determines the size of the curvature, and adjusts the reference frequency of the central processing unit according to the determination result. For example, if the curvature is within the acceptable interval [ a, b ], it is considered that the reference frequency does not need to be adjusted within a reasonable range; if the curvature is larger than b, setting the reference frequency of the central processing unit to be x% of the current operation frequency reduced on the basis of the current operation frequency; and if the curvature is smaller than a, setting the reference frequency of the central processing unit to be y% of the current operation frequency increased on the basis of the current operation frequency. It should be noted that, when the central processing unit operates at the reference frequency, all cores of the mobile terminal are working, thereby avoiding the waste of core resources. a. The specific values of b, x and y can be set according to actual conditions.
A frequency and temperature obtaining module 30, configured to obtain a current operating frequency of the central processing unit and a current temperature of the kernel every first preset time;
after the reference frequency of the central processing unit is adjusted, in order to meet the requirement of the mobile terminal for application resource scheduling and under the condition that all cores of the mobile terminal are working, the temperature of the cores is not too high, and at the moment, the operation frequency of the central processing unit needs to be adjusted according to the current operation frequency of the central processing unit and the current temperature of the cores. First, the frequency and temperature obtaining module 30 obtains the current operating frequency of the cpu and the current temperature of the core every first preset time, and the first preset time can be flexibly set according to specific situations.
And the operating frequency adjusting module 40 is configured to, when the current operating frequency is greater than the reference frequency, correspondingly adjust the operating frequency of the central processing unit according to a size relationship between the current temperature and a preset core shutdown temperature, so as to perform application resource scheduling according to the operating frequency adjusted by the central processing unit.
In this embodiment, the mobile terminal is preset with a core closing temperature, and when the temperature of the core reaches the core closing temperature, the corresponding central processing unit is closed, so as to prevent the core temperature from continuously rising. After obtaining the current operating frequency of the central processing unit and the current temperature of the core, the operating frequency adjusting module 40 compares the current operating frequency of the central processing unit with the reference frequency, compares the current temperature of the core with the preset core closing temperature, and adjusts the operating frequency of the central processing unit according to the comparison result of the current operating frequency of the central processing unit and the preset core closing temperature to achieve dynamic balance. For example, if the current operating frequency is greater than the reference frequency and the current temperature of the core is higher than the core closing temperature, the operating frequency of the central processing unit is reduced until the temperature is reduced to a certain range; when the current temperature of the core is lower than a certain value, namely the difference between the current temperature and the core closing temperature is larger, the running frequency of the central processing unit is improved, and the system can process more tasks. Therefore, the cores of all central processing units of the mobile terminal can be ensured to work, the temperature of the cores fluctuates in a proper range, and the mobile terminal can carry out application resource scheduling according to the running frequency of the central processing units. The influence of the operating frequency of the central processing unit and the temperature of the kernel is comprehensively considered, the software and hardware resources of the system can obtain higher utilization rate, meanwhile, the aspects of power consumption, heating, mobile terminal performance and the like are considered, the program processing capacity and the response speed of the mobile terminal are improved, and the user experience is improved.
For example, it is assumed that the terminal supports 8-core cpus, the core off temperature of each cpu is 60 ℃, the maximum operating frequency of a single cpu is 2000Hz, the reference frequency of the cpu operation is 1600Hz, and the core of the cpu 8 is fully opened. When the mobile terminal runs in a game scene, the mobile terminal adjusts the running reference frequency of the central processing unit to 1500Hz according to the curvature of the core temperature changing in a specified time period, and then obtains the current running frequency of the central processing unit to be 1700Hz and the current temperature of the core to be 55 ℃. Then comparing the current running frequency of the central processing unit with the reference frequency, and simultaneously comparing the current temperature of the inner core with the preset inner core closing temperature. At this time, the current operating frequency 1700Hz of the central processing unit is greater than the reference frequency 1500Hz, and the current temperature 55 ℃ of the core is greater than 90% of the core closing temperature, so that the operating frequency of the central processing unit is reduced to 1500 Hz. Thereafter, the core temperature is gradually decreased, when the core temperature is decreased to 80% of the core off temperature, i.e. the core temperature is decreased to 48 ℃, the operating frequency of the cpu is slowly increased from 1500Hz, for example, the operating frequency is increased by 50Hz every 1 minute, when the current operating frequency of the cpu is greater than the reference frequency and the current temperature of the core is greater than the core off temperature, the operating frequency of the cpu is decreased to the reference frequency, and the process is repeated. The central processing unit of the mobile terminal can float in frequency by taking the frequency of 1500Hz as a reference frequency, all the cores can be ensured to work, power consumption, performance and the like can be ensured on the basis of the existing software and hardware resources of the mobile terminal, the program processing capacity and the response speed of the terminal are improved, and the satisfaction degree of a user on the use of the mobile terminal is improved.
After the mobile terminal adjusts the reference frequency of the operation of the central processing unit through the curvature of the change of the core temperature of the central processing unit in the appointed time period, the mobile terminal compares the current operation frequency of the central processing unit obtained at intervals of a first preset time with the reference frequency, compares the current temperature of the core obtained with the preset core closing temperature, and adjusts the operation frequency of the central processing unit according to the comparison result, so that the mobile terminal can carry out resource scheduling according to the adjusted operation frequency of the central processing unit. The fluctuation of the core temperature in a proper range is realized, all cores of the mobile terminal are ensured to work, the resource utilization rate of the mobile terminal is improved, and the service life of the mobile terminal is prolonged.
Further, based on the first embodiment of the resource scheduling apparatus, a second embodiment of the resource scheduling apparatus of the present invention is provided, where the difference between this embodiment and the first embodiment of the resource scheduling apparatus of the present invention is that the reference frequency adjusting module 20 in this embodiment is further configured to, when the curvature is greater than a first preset curvature value, reduce the reference frequency of the central processing unit by a first preset value; when the curvature is smaller than a second preset curvature value, increasing the reference frequency of the central processing unit by a second preset value; the second preset curvature value is smaller than the first preset curvature value.
In this embodiment, after the reference frequency of the central processing unit is set, in the process of adjusting the reference frequency of the central processing unit according to the curvature of the core temperature change, the reference frequency adjusting module 20 may preset a mapping relationship between the curvature interval and the reference frequency adjusting amplitude, after the curvature of the core temperature change is obtained, match the curvature with the preset curvature interval, determine the curvature interval in which the curvature is located, and adjust the reference frequency according to the adjusting amplitude corresponding to the curvature interval according to the mapping relationship between the curvature interval and the reference frequency adjusting amplitude. For example, the curvature is divided into three curvature intervals, the first curvature interval is that the curvature k is smaller than the curvature a, and the corresponding reference frequency is adjusted to be decreased by a first preset frequency value; the second curvature interval is that the curvature k is larger than the curvature a and smaller than the curvature b, and the corresponding reference frequency adjusting amplitude is zero; and the third curvature interval is that the curvature k is larger than the curvature b, and the corresponding reference frequency adjusting amplitude is a second preset frequency value.
Specifically, when the curvature of the core temperature change is greater than a first preset curvature value, which indicates that the core temperature rises faster at this time, the time to reach the core closing temperature is shorter, and the reference frequency adjusting module 20 needs to reduce the reference frequency of the central processing unit operation by a first preset value to increase the time to reach the core closing temperature. The first predetermined curvature value and the first predetermined value can be flexibly set according to specific situations. For example, the first preset value may be set to ten percent of the current reference frequency, or fixed 100Hz, etc. When the curvature of the change of the core temperature is smaller than the second preset curvature value, which indicates that the core temperature rises slowly at this time and the time for reaching the core closing temperature is longer, the reference frequency adjusting module 20 can increase the reference frequency of the central processing unit to the second preset value, so that the system processes more tasks and improves the resource utilization rate. The first preset curvature value is larger than the second preset curvature value, the second preset curvature value and the second preset value can be flexibly set according to specific conditions, and the second preset value can be set to be consistent with or inconsistent with the first preset value. When the curvature of the temperature change of the inner core is smaller than or equal to a first preset curvature value and larger than or equal to a second preset curvature value, the reference frequency of the running of the central processing unit does not need to be adjusted.
In the embodiment, the reference frequency of the operation of the central processing unit is correspondingly adjusted according to the curvature of the temperature change of the cores, so that all the cores work, and the waste of core resources is avoided. And the mobile terminal is ensured to operate under the application of different power consumption (for example, playing games, reading and the like) to set corresponding reference frequency, so that the temperature of the inner core fluctuates in a proper range, and the resource utilization rate and the service life of the mobile terminal are improved.
Further, based on the first embodiment of the resource scheduling apparatus, a third embodiment of the resource scheduling apparatus of the present invention is provided, where a difference between this embodiment and the first embodiment of the resource scheduling apparatus of the present invention is that the operating frequency adjusting module 40 in this embodiment includes:
the first adjusting unit is used for reducing the operating frequency of the central processing unit to the reference frequency when the current operating frequency is greater than the reference frequency and the current temperature reaches a first preset percentage of the core closing temperature;
and the second adjusting unit is used for acquiring the new temperature of the kernel, and when the new temperature is reduced to a second preset percentage of the shutdown temperature of the kernel, the operating frequency of the central processing unit is increased by a preset frequency value every second preset time.
In this embodiment, in the process of adjusting the operating frequency of the central processing unit, the mobile terminal compares the current operating frequency of the central processing unit with the reference frequency, and simultaneously compares the current temperature of the core with a preset core closing temperature, if the current operating frequency is greater than the reference frequency and the current temperature reaches a first preset percentage of the core closing temperature, it indicates that the current temperature of the core is approaching to the core closing temperature, and at this time, the first adjusting unit reduces the operating frequency of the central processing unit to the reference frequency, so that the core temperature gradually decreases. The first preset percentage of the core shutdown temperature may be set to 90% of the core shutdown temperature, and of course, the first preset percentage may also be set according to actual conditions. If the current operating frequency is less than or equal to the reference frequency or the current temperature does not reach the first preset percentage of the core closing temperature, the operating frequency of the central processing unit does not need to be adjusted, namely, the central processing unit maintains the current operating frequency.
After the operation frequency of the central processing unit is adjusted, the new temperature of the core is obtained, when the new temperature is reduced to a second preset percentage of the core closing temperature, the temperature difference between the current temperature and the core closing temperature is large, the second adjusting unit adjusts the operation frequency of the central processing unit to a preset frequency value every second preset time, so that the operation frequency of the central processing unit is slowly increased, and the system can process more tasks. The second predetermined percentage of the core shutdown temperature may be set to 80% of the core shutdown temperature, and of course, the first predetermined percentage may also be set according to actual conditions. The second predetermined time and the predetermined frequency value can also be set according to the actual situation, for example, 50Hz is adjusted up every 1 minute. When the current operating frequency of the central processing unit is greater than the reference frequency and the current temperature of the core is greater than the core closing temperature, the operating frequency of the central processing unit is reduced to the reference frequency, and the operation is repeated in a circulating mode.
It can be understood that, if the current operating frequency is greater than the reference frequency, the current temperature is less than the core closing temperature, and the temperature difference between the current temperature and the core closing temperature is less than the preset temperature difference, the operating frequency of the central processing unit is reduced by the preset frequency, the preset temperature difference and the preset frequency can be set according to the actual situation, the preset temperature difference can be divided into a plurality of temperature difference intervals, and each temperature difference interval corresponds to different preset frequencies.
According to the embodiment, the operating frequency of the central processing unit is correspondingly adjusted according to the size relationship between the current operating frequency and the reference frequency and the size relationship between the current temperature and the core closing temperature, so that not only can the cores of all the central processing units of the mobile terminal be ensured to work, the core temperature fluctuates in a proper range, but also the operating frequency of the central processing unit and the influence of the temperature of the cores are comprehensively considered, the aspects of power consumption, heating, performance and the like are considered, and the resource utilization rate, the response speed and the service life of the mobile terminal are improved.
Further, as shown in fig. 5, a fourth embodiment of the resource scheduling apparatus of the present invention is proposed based on the first embodiment of the resource scheduling apparatus, and the difference between this embodiment and the first embodiment of the resource scheduling apparatus of the present invention is that a processing module 50 is added, and the resource scheduling apparatus in this embodiment includes:
a curvature obtaining module 10, configured to obtain a curvature of a core temperature of a central processing unit of the mobile terminal changing within a specified time period;
a reference frequency adjusting module 20, configured to adjust a reference frequency of the central processing unit according to the curvature;
a frequency and temperature obtaining module 30, configured to obtain a current operating frequency of the central processing unit and a current temperature of the kernel every first preset time;
and the operating frequency adjusting module 40 is configured to, when the current operating frequency is greater than the reference frequency, correspondingly adjust the operating frequency of the central processing unit according to a size relationship between the current temperature and a preset core shutdown temperature, so as to perform application resource scheduling according to the operating frequency adjusted by the central processing unit.
And the processing module 50 is configured to obtain a total consumption amount of the mobile terminal resource every third preset time, and when the total consumption amount is greater than a preset consumption amount, obtain a temperature of the kernel in a specified time period.
Only the differences between this embodiment and the first embodiment of the resource scheduling apparatus of the present invention are described below, and other modules may refer to the detailed description of the first embodiment, which is not repeated herein.
In this embodiment, the mobile terminal may obtain the temperature of the core temperature in the specified time period only when the total consumption amount of the resource is high, and adjust the reference frequency of the central processing unit according to the curvature of the temperature change in the time period. Specifically, first, the mobile terminal calls the processing module 50 to obtain the total consumption amount of the resource every third preset time, and compares the total consumption amount of the resource with the preset consumption amount, where the third preset time and the preset consumption amount can be flexibly set according to specific situations. When the total consumption is greater than the preset consumption, which indicates that the current resource consumption of the mobile terminal is greater at this time, the system needs to process more tasks, the processing module acquires the temperature of the kernel in a specified time period, so that the mobile terminal can adjust the reference frequency of the central processing unit according to the curvature of the temperature change in the specified time period, and the specified time period can be set to be a time period when the total consumption of the resources is greater than the preset consumption. When the total consumption is less than or equal to the preset consumption, the total consumption of the mobile terminal resources is less, and the reference frequency of the operation of the central processing unit does not need to be adjusted by acquiring the curvature of the temperature change of the inner core.
In this embodiment, when the total consumption amount of the resources is greater than the preset consumption amount, the mobile terminal needs to acquire the temperature of the core within the specified time period, so as to acquire the curvature of the temperature change within the specified time period to adjust the reference frequency of the central processing unit, thereby improving the rationality of acquiring the curvature of the core temperature change within the specified time period and the accuracy of adjusting the reference frequency.
Correspondingly, the present invention provides a mobile terminal, which includes the resource scheduling device with the above structure, and the working principle and implementation manner of the resource scheduling device can refer to fig. 3 to fig. 5 and the corresponding embodiments thereof, including all technical features therein, which are not described herein again. The mobile terminal can be a mobile phone, an iPad and the like. In the embodiment of the mobile terminal, after the mobile terminal adjusts the running reference frequency of the central processing unit through the curvature of the change of the core temperature of the central processing unit in the specified time period, the current running frequency of the central processing unit obtained at intervals of a first preset time is compared with the reference frequency, the current temperature of the core is obtained and compared with the preset core closing temperature, and the running frequency of the central processing unit is adjusted according to the comparison result, so that the mobile terminal can carry out resource scheduling according to the adjusted running frequency of the central processing unit. The fluctuation of the core temperature in a proper range is realized, all cores of the mobile terminal are ensured to work, the resource utilization rate of the mobile terminal is improved, and the service life of the mobile terminal is prolonged.
Correspondingly, as shown in fig. 6, a first embodiment of a resource scheduling method according to the present invention is provided. The resource scheduling method of this embodiment corresponds to the first embodiment of the resource scheduling apparatus described above, and the resource scheduling method of this embodiment includes:
s10, acquiring the curvature of the change of the core temperature of the central processing unit of the mobile terminal in a specified time period;
in this embodiment, the type of the mobile terminal may be set according to actual needs, for example, a mobile terminal handset, an ipad, and the like. The mobile terminal comprises a resource scheduling device, and in the using process of the mobile terminal, the core temperature of a central processing unit of the mobile terminal may show different changes in different using time periods. For example, in the first period of time, when a user reads a document by using the mobile terminal, the power consumption of the mobile terminal is low, and the core temperature of the central processing unit is low. And in the second time period, the user uses the mobile terminal to play the game, the power consumption of the mobile terminal is higher, and the temperature of the inner core of the central processing unit is higher.
In order to adjust the reference frequency of the central processing unit, in an embodiment, the mobile terminal may detect the core temperature of the central processing unit in a certain period of time at regular intervals, and obtain the curvature of the core temperature change according to the core temperature in the period of time. In another embodiment, the core temperature of the central processing unit in a specified time period is detected if necessary, for example, when the mobile terminal runs in browsing pictures, the total consumption of resources of the mobile terminal is small, and then the curvature of the core temperature change does not need to be acquired; when the mobile terminal runs in a game scene, the total consumption of the mobile terminal resources is large, and at this time, the curvature of the change of the core temperature needs to be acquired. Then, according to the core temperature in the specified time period, the curvature of the core temperature change in the specified time period is obtained.
The curvature of the core temperature changing in different time periods is shown in fig. 4, the horizontal axis in fig. 4 is time, the vertical axis is the core temperature, and k1, k2, k3 and k4 respectively represent the curvature changing in different time periods, wherein, the curvature of the core temperature changing is larger in k1> k2> k3> k4, which indicates that the faster the core temperature rises, the shorter the time point of reaching the core closing temperature. Conversely, a smaller curvature of the core temperature change indicates a slower core temperature rise and a longer time to core shutdown.
Step S20, adjusting the operating reference frequency of the central processing unit according to the curvature;
in this embodiment, the reference frequency of the central processing unit may be a default reference frequency, or may be a preset reference frequency of the central processing unit. Optionally, a third preset percentage of the maximum operating frequency of the central processing unit is set as the reference frequency, and the third preset percentage may be set to 80%, or may be flexibly set according to specific situations. For example, when the mobile terminal supports 8-core central processing units, and the maximum operating frequency of a single central processing unit is 2000Hz, the reference frequency of the central processing unit is set to 2000Hz × 80% — 1600 Hz.
After the curvature of the core temperature changing in the appointed time period is obtained, the size of the curvature is judged, and the reference frequency of the central processing unit is adjusted according to the judgment result. For example, if the curvature is within the acceptable interval [ a, b ], it is considered that the reference frequency does not need to be adjusted within a reasonable range; if the curvature is larger than b, setting the reference frequency of the central processing unit to be x% of the current operation frequency reduced on the basis of the current operation frequency; and if the curvature is smaller than a, setting the reference frequency of the central processing unit to be y% of the current operation frequency increased on the basis of the current operation frequency. It should be noted that, when the central processing unit operates at the reference frequency, all cores of the mobile terminal are working, thereby avoiding the waste of core resources. a. The specific values of b, x and y can be set according to actual conditions.
Step S30, acquiring the current operating frequency of the central processing unit and the current temperature of the kernel every other first preset time;
after the reference frequency of the central processing unit is adjusted, in order to meet the requirement of the mobile terminal for application resource scheduling and under the condition that all cores of the mobile terminal are working, the temperature of the cores is not too high, and at the moment, the operation frequency of the central processing unit needs to be adjusted according to the current operation frequency of the central processing unit and the current temperature of the cores. Firstly, the mobile terminal acquires the current operating frequency of the central processing unit and the current temperature of the kernel every first preset time, and the first preset time can be flexibly set according to specific conditions.
And step S40, when the current operating frequency is greater than the reference frequency, correspondingly adjusting the operating frequency of the central processing unit according to the size relation between the current temperature and the preset core closing temperature, so as to perform application resource scheduling according to the operating frequency adjusted by the central processing unit.
In this embodiment, the mobile terminal is preset with a core closing temperature, and when the temperature of the core reaches the core closing temperature, the corresponding central processing unit is closed, so as to prevent the core temperature from continuously rising. After the current operating frequency of the central processing unit and the current temperature of the kernel are obtained, the mobile terminal compares the magnitude relation between the current operating frequency of the central processing unit and the reference frequency, compares the magnitude relation between the current temperature of the kernel and the preset kernel closing temperature, and adjusts the operating frequency of the central processing unit according to the comparison result of the current operating frequency of the kernel and the preset kernel closing temperature so as to achieve dynamic balance. For example, if the current operating frequency is greater than the reference frequency and the current temperature of the core is higher than the core closing temperature, the operating frequency of the central processing unit is reduced until the temperature is reduced to a certain range; when the current temperature of the core is lower than a certain value, namely the difference between the current temperature and the core closing temperature is larger, the running frequency of the central processing unit is improved, and the system can process more tasks. Therefore, the cores of all central processing units of the mobile terminal can be ensured to work, the temperature of the cores fluctuates in a proper range, and the mobile terminal can carry out application resource scheduling according to the running frequency of the central processing units. The influence of the operating frequency of the central processing unit and the temperature of the kernel is comprehensively considered, the software and hardware resources of the system can obtain higher utilization rate, meanwhile, the aspects of power consumption, heating, mobile terminal performance and the like are considered, the program processing capacity and the response speed of the mobile terminal are improved, and the user experience is improved.
For example, it is assumed that the terminal supports 8-core cpus, the core off temperature of each cpu is 60 ℃, the maximum operating frequency of a single cpu is 2000Hz, the reference frequency of the cpu operation is 1600Hz, and the core of the cpu 8 is fully opened. When the mobile terminal runs in a game scene, the mobile terminal adjusts the running reference frequency of the central processing unit to 1500Hz according to the curvature of the core temperature changing in a specified time period, and then obtains the current running frequency of the central processing unit to be 1700Hz and the current temperature of the core to be 55 ℃. Then comparing the current running frequency of the central processing unit with the reference frequency, and simultaneously comparing the current temperature of the inner core with the preset inner core closing temperature. At this time, the current operating frequency 1700Hz of the central processing unit is greater than the reference frequency 1500Hz, and the current temperature 55 ℃ of the core is greater than 90% of the core closing temperature, so that the operating frequency of the central processing unit is reduced to 1500 Hz. Thereafter, the core temperature is gradually decreased, when the core temperature is decreased to 80% of the core off temperature, i.e. the core temperature is decreased to 48 ℃, the operating frequency of the cpu is slowly increased from 1500Hz, for example, the operating frequency is increased by 50Hz every 1 minute, when the current operating frequency of the cpu is greater than the reference frequency and the current temperature of the core is greater than the core off temperature, the operating frequency of the cpu is decreased to the reference frequency, and the process is repeated. The central processing unit of the mobile terminal can float in frequency by taking the frequency of 1500Hz as a reference frequency, all the cores can be ensured to work, power consumption, performance and the like can be ensured on the basis of the existing software and hardware resources of the mobile terminal, the program processing capacity and the response speed of the terminal are improved, and the satisfaction degree of a user on the use of the mobile terminal is improved.
After the mobile terminal adjusts the reference frequency of the operation of the central processing unit through the curvature of the change of the core temperature of the central processing unit in the appointed time period, the mobile terminal compares the current operation frequency of the central processing unit obtained at intervals of a first preset time with the reference frequency, compares the current temperature of the core obtained with the preset core closing temperature, and adjusts the operation frequency of the central processing unit according to the comparison result, so that the mobile terminal can carry out resource scheduling according to the adjusted operation frequency of the central processing unit. The fluctuation of the core temperature in a proper range is realized, all cores of the mobile terminal are ensured to work, the resource utilization rate of the mobile terminal is improved, and the service life of the mobile terminal is prolonged.
Further, based on the first embodiment of the resource scheduling method, a second embodiment of the resource scheduling method of the present invention is provided, where the resource scheduling method of this embodiment corresponds to the second embodiment of the resource scheduling apparatus, and a difference between this embodiment and the first embodiment of the resource scheduling method of the present invention is that step S20 in this embodiment includes: when the curvature is larger than a first preset curvature value, reducing the reference frequency of the central processing unit by a first preset value; when the curvature is smaller than a second preset curvature value, increasing the reference frequency of the central processing unit by a second preset value; the second preset curvature value is smaller than the first preset curvature value.
In this embodiment, after the reference frequency of the central processing unit is set, in the process of adjusting the reference frequency of the central processing unit according to the curvature of the core temperature change, in order to accurately adjust the reference frequency, the mobile terminal may preset a mapping relationship between the curvature interval and the reference frequency adjustment amplitude, after the curvature of the core temperature change is obtained, match the curvature with the preset curvature interval, determine the curvature interval where the curvature is located, and adjust the reference frequency according to the adjustment amplitude corresponding to the curvature interval according to the mapping relationship between the curvature interval and the reference frequency adjustment amplitude. For example, the curvature is divided into three curvature intervals, the first curvature interval is that the curvature k is smaller than the curvature a, and the corresponding reference frequency is adjusted to be decreased by a first preset frequency value; the second curvature interval is that the curvature k is larger than the curvature a and smaller than the curvature b, and the corresponding reference frequency adjusting amplitude is zero; and the third curvature interval is that the curvature k is larger than the curvature b, and the corresponding reference frequency adjusting amplitude is a second preset frequency value.
Specifically, when the curvature of the change of the core temperature is greater than a first preset curvature value, it indicates that the core temperature rises faster at this time, and the time to reach the core turn-off temperature is shorter, and it is necessary to reduce the reference frequency of the cpu operation by the first preset value to increase the time to reach the core turn-off temperature. The first predetermined curvature value and the first predetermined value can be flexibly set according to specific situations. For example, the first preset value may be set to ten percent of the current reference frequency, or fixed 100Hz, etc. When the curvature of the change of the temperature of the inner core is smaller than the second preset curvature value, the temperature of the inner core rises slowly at the moment, the time for reaching the closing temperature of the inner core is longer, the reference frequency of the operation of the central processing unit can be increased by the second preset value, the system can process more tasks, and the resource utilization rate is improved. The first preset curvature value is larger than the second preset curvature value, the second preset curvature value and the second preset value can be flexibly set according to specific conditions, and the second preset value can be set to be consistent with or inconsistent with the first preset value. When the curvature of the temperature change of the inner core is smaller than or equal to a first preset curvature value and larger than or equal to a second preset curvature value, the reference frequency of the running of the central processing unit does not need to be adjusted.
In the embodiment, the reference frequency of the operation of the central processing unit is correspondingly adjusted according to the curvature of the temperature change of the cores, so that all the cores work, and the waste of core resources is avoided. And the mobile terminal is ensured to operate under the application of different power consumption (for example, playing games, reading and the like) to set corresponding reference frequency, so that the temperature of the inner core fluctuates in a proper range, and the resource utilization rate and the service life of the mobile terminal are improved.
Further, based on the first embodiment of the resource scheduling method, a third embodiment of the resource scheduling method of the present invention is provided, where the resource scheduling method of this embodiment corresponds to the third embodiment of the resource scheduling apparatus, and a difference between this embodiment and the first embodiment of the resource scheduling method of the present invention is that the step S40 in this embodiment includes: when the current operating frequency is greater than the reference frequency and the current temperature reaches a first preset percentage of the core closing temperature, reducing the operating frequency of the central processing unit to the reference frequency;
and acquiring the new temperature of the core, and increasing the running frequency of the central processing unit by a preset frequency value every second preset time when the new temperature is reduced to a second preset percentage of the closing temperature of the core.
In this embodiment, in the process of adjusting the operating frequency of the central processing unit, the mobile terminal compares the current operating frequency of the central processing unit with the reference frequency, and simultaneously compares the current temperature of the core with a preset core closing temperature, if the current operating frequency is greater than the reference frequency and the current temperature reaches a first preset percentage of the core closing temperature, it indicates that the current temperature of the core is fast reaching the core closing temperature, and at this time, the operating frequency of the central processing unit is reduced to the reference frequency, so that the core temperature is gradually reduced. The first preset percentage of the core shutdown temperature may be set to 90% of the core shutdown temperature, and of course, the first preset percentage may also be set according to actual conditions. If the current operating frequency is less than or equal to the reference frequency or the current temperature does not reach the first preset percentage of the core closing temperature, the operating frequency of the central processing unit does not need to be adjusted, namely, the central processing unit maintains the current operating frequency.
After the operation frequency of the central processing unit is adjusted, acquiring the new temperature of the core, when the new temperature is reduced to a second preset percentage of the core closing temperature, indicating that the temperature difference between the current temperature and the core closing temperature is larger, and increasing the operation frequency of the central processing unit by a preset frequency value every second preset time so as to slowly increase the operation frequency of the central processing unit and enable the system to process more tasks. The second predetermined percentage of the core shutdown temperature may be set to 80% of the core shutdown temperature, and of course, the first predetermined percentage may also be set according to actual conditions. The second predetermined time and the predetermined frequency value can also be set according to the actual situation, for example, 50Hz is adjusted up every 1 minute. When the current operating frequency of the central processing unit is greater than the reference frequency and the current temperature of the core is greater than the core closing temperature, the operating frequency of the central processing unit is reduced to the reference frequency, and the operation is repeated in a circulating mode.
It can be understood that, if the current operating frequency is greater than the reference frequency, the current temperature is less than the core closing temperature, and the temperature difference between the current temperature and the core closing temperature is less than the preset temperature difference, the operating frequency of the central processing unit is reduced by the preset frequency, the preset temperature difference and the preset frequency can be set according to the actual situation, the preset temperature difference can be divided into a plurality of temperature difference intervals, and each temperature difference interval corresponds to different preset frequencies.
According to the embodiment, the operating frequency of the central processing unit is correspondingly adjusted according to the size relationship between the current operating frequency and the reference frequency and the size relationship between the current temperature and the core closing temperature, so that not only can the cores of all the central processing units of the mobile terminal be ensured to work, the core temperature fluctuates in a proper range, but also the operating frequency of the central processing unit and the influence of the temperature of the cores are comprehensively considered, the aspects of power consumption, heating, performance and the like are considered, and the resource utilization rate, the response speed and the service life of the mobile terminal are improved.
Further, as shown in fig. 7, a fourth embodiment of the resource scheduling method of the present invention is proposed based on the first embodiment of the resource scheduling method, where the resource scheduling method of this embodiment corresponds to the fourth embodiment of the resource scheduling apparatus of the present invention, and the difference between this embodiment and the first embodiment of the resource scheduling method of the present invention is that step S50 is added, and the resource scheduling method of this embodiment includes:
step S50, acquiring the total consumption amount of the mobile terminal resource every third preset time, and acquiring the temperature of the kernel in a specified time period when the total consumption amount is larger than the preset consumption amount;
s10, acquiring the curvature of the change of the core temperature of the central processing unit of the mobile terminal in a specified time period;
step S20, adjusting the operating reference frequency of the central processing unit according to the curvature;
step S30, acquiring the current operating frequency of the central processing unit and the current temperature of the kernel every other first preset time;
and step S40, when the current operating frequency is greater than the reference frequency, correspondingly adjusting the operating frequency of the central processing unit according to the size relation between the current temperature and the preset core closing temperature, so as to perform application resource scheduling according to the operating frequency adjusted by the central processing unit.
Only the differences between this embodiment and the first embodiment of the resource scheduling method of the present invention are described below, and other steps may refer to the detailed description of the first embodiment, which is not repeated herein.
In this embodiment, the mobile terminal may obtain the temperature of the core temperature in the specified time period only when the total consumption amount of the resource is high, and adjust the reference frequency of the central processing unit according to the curvature of the temperature change in the time period. Specifically, first, the mobile terminal obtains the total consumption amount of the resource every third preset time, and compares the total consumption amount of the resource with the preset consumption amount, where the third preset time and the preset consumption amount can be flexibly set according to specific situations. When the total consumption is greater than the preset consumption, it indicates that the current resource consumption of the mobile terminal is greater at this time, the system needs to process more tasks, the mobile terminal obtains the temperature of the kernel in a specified time period, so that the mobile terminal can adjust the reference frequency of the central processing unit according to the curvature of the temperature change in the specified time period, and the specified time period can be set to a time period when the total consumption of the resources is greater than the preset consumption. When the total consumption is less than or equal to the preset consumption, the total consumption of the mobile terminal resources is less, and the reference frequency of the operation of the central processing unit does not need to be adjusted by acquiring the curvature of the temperature change of the inner core.
In this embodiment, when the total consumption amount of the resources is greater than the preset consumption amount, the mobile terminal needs to acquire the temperature of the core within the specified time period, so as to acquire the curvature of the temperature change within the specified time period to adjust the reference frequency of the central processing unit, thereby improving the rationality of acquiring the curvature of the core temperature change within the specified time period and the accuracy of adjusting the reference frequency.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A resource scheduling apparatus, wherein the resource scheduling apparatus comprises:
the curvature acquisition module is used for acquiring the curvature of the change of the core temperature of the central processing unit of the mobile terminal in a specified time period;
the reference frequency adjusting module is used for judging according to the curvature and adjusting the running reference frequency of the central processing unit according to the judgment result;
the reference frequency adjusting module is further used for reducing the reference frequency of the central processing unit operation by a first preset value when the curvature is larger than a first preset curvature value; when the curvature is smaller than a second preset curvature value, increasing the reference frequency of the central processing unit by a second preset value; the second preset curvature value is smaller than the first preset curvature value, and the central processing unit operates under a reference frequency;
the frequency and temperature acquisition module is used for acquiring the current operating frequency of the central processing unit and the current temperature of the kernel at intervals of first preset time;
and the operating frequency adjusting module is used for correspondingly adjusting the operating frequency of the central processing unit according to the magnitude relation between the current temperature and the preset core closing temperature when the current operating frequency is greater than the reference frequency, so as to schedule the application resources according to the operating frequency adjusted by the central processing unit.
2. The resource scheduling apparatus of claim 1 wherein the operating frequency adjustment module comprises:
the first adjusting unit is used for reducing the operating frequency of the central processing unit to the reference frequency when the current operating frequency is greater than the reference frequency and the current temperature reaches a first preset percentage of the core closing temperature;
and the second adjusting unit is used for acquiring the new temperature of the kernel, and when the new temperature is reduced to a second preset percentage of the shutdown temperature of the kernel, the operating frequency of the central processing unit is increased by a preset frequency value every second preset time.
3. The resource scheduling apparatus of any one of claims 1-2, wherein the resource scheduling apparatus further comprises:
and the processing module is used for acquiring the total consumption amount of the mobile terminal resources at intervals of a third preset time, and acquiring the temperature of the kernel in a specified time period when the total consumption amount is greater than the preset consumption amount.
4. A mobile terminal, characterized in that the mobile terminal comprises the resource scheduling apparatus according to any of claims 1-3.
5. A resource scheduling method, characterized in that the resource scheduling method comprises the following steps:
acquiring the curvature of the change of the core temperature of a central processing unit of the mobile terminal in a specified time period;
judging according to the curvature, and adjusting the operating reference frequency of the central processing unit according to the judgment result;
the judging according to the curvature, and the adjusting the operating reference frequency of the central processing unit according to the judging result comprises the following steps:
when the curvature is larger than a first preset curvature value, reducing the reference frequency of the central processing unit by a first preset value;
when the curvature is smaller than a second preset curvature value, increasing the reference frequency of the central processing unit by a second preset value; the second preset curvature value is smaller than the first preset curvature value, and the central processing unit operates under a reference frequency;
acquiring the current operating frequency of the central processing unit and the current temperature of the kernel at intervals of first preset time;
and when the current operating frequency is greater than the reference frequency, correspondingly adjusting the operating frequency of the central processing unit according to the size relation between the current temperature and the preset core closing temperature, so as to perform application resource scheduling according to the adjusted operating frequency of the central processing unit.
6. The resource scheduling method of claim 5, wherein when the current operating frequency is greater than the reference frequency, adjusting the operating frequency of the central processing unit according to a magnitude relationship between the current temperature and a preset core shutdown temperature, so as to perform application resource scheduling according to the adjusted operating frequency of the central processing unit comprises:
when the current operating frequency is greater than the reference frequency and the current temperature reaches a first preset percentage of the core closing temperature, reducing the operating frequency of the central processing unit to the reference frequency;
and acquiring the new temperature of the core, and increasing the running frequency of the central processing unit by a preset frequency value every second preset time when the new temperature is reduced to a second preset percentage of the closing temperature of the core.
7. The resource scheduling method according to any one of claims 5 to 6, wherein the obtaining the curvature of the change of the core temperature of the central processor of the mobile terminal within a specified time period comprises:
and acquiring the total consumption amount of the mobile terminal resources every a third preset time, and acquiring the temperature of the kernel in a specified time period when the total consumption amount is greater than the preset consumption amount.
8. The method according to any of claims 5-6, wherein said determining according to the curvature magnitude and adjusting the reference frequency of the CPU operation according to the determination result comprises:
setting a third preset percentage of the maximum operating frequency of the central processing unit as the reference frequency.
CN201610363761.2A 2016-05-26 2016-05-26 Resource scheduling device, mobile terminal and resource scheduling method Active CN106066813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610363761.2A CN106066813B (en) 2016-05-26 2016-05-26 Resource scheduling device, mobile terminal and resource scheduling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610363761.2A CN106066813B (en) 2016-05-26 2016-05-26 Resource scheduling device, mobile terminal and resource scheduling method

Publications (2)

Publication Number Publication Date
CN106066813A CN106066813A (en) 2016-11-02
CN106066813B true CN106066813B (en) 2020-03-13

Family

ID=57420283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610363761.2A Active CN106066813B (en) 2016-05-26 2016-05-26 Resource scheduling device, mobile terminal and resource scheduling method

Country Status (1)

Country Link
CN (1) CN106066813B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239345A (en) * 2017-06-06 2017-10-10 深圳天珑无线科技有限公司 Data processing method and device
CN109254852B (en) * 2018-12-18 2019-03-29 展讯通信(上海)有限公司 Data processing equipment and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7194646B1 (en) * 1989-10-30 2007-03-20 Texas Instruments Incorporated Real-time thermal management for computers
CN104122962A (en) * 2013-04-27 2014-10-29 宏碁股份有限公司 Temperature regulation device and method
CN104137024A (en) * 2011-12-22 2014-11-05 英特尔公司 A method, apparatus, and system for energy efficiency and energy conservation including energy efficient processor thermal throttling using deep power down mode
CN104360822A (en) * 2014-10-22 2015-02-18 深圳芯邦科技股份有限公司 Chip and control method for working frequency of chip
CN104487911A (en) * 2012-07-26 2015-04-01 高通股份有限公司 Autonomous thermal controller for power management IC
CN104635789A (en) * 2013-11-11 2015-05-20 联发科技股份有限公司 Thermal management method using micro-throttle and wireless device thereof

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1145868C (en) * 2000-03-21 2004-04-14 神基科技股份有限公司 Stepped frequency converter
US20020087904A1 (en) * 2000-12-28 2002-07-04 Zhong-Ning (George) Cai Method and apparatus for thermal sensitivity based dynamic power control
US8812169B2 (en) * 2005-10-31 2014-08-19 Hewlett-Packard Development Company, L.P. Heat sink verification
CN101853066A (en) * 2009-02-11 2010-10-06 上海芯豪微电子有限公司 Method and device for automatically adjusting clock frequency of system in real time
US8793512B2 (en) * 2010-10-29 2014-07-29 Advanced Micro Devices, Inc. Method and apparatus for thermal control of processing nodes
CN102609014B (en) * 2011-01-25 2014-01-01 鼎桥通信技术有限公司 Method for controlling temperature of single plate
US9218041B2 (en) * 2012-12-28 2015-12-22 Intel Corporation Adaptive thermal control of electronic devices
TW201445295A (en) * 2013-05-30 2014-12-01 Hon Hai Prec Ind Co Ltd System and method of controlling fan speed
CN104199765B (en) * 2014-08-14 2018-09-11 北京金山安全软件有限公司 Method and device for acquiring normal temperature value range of terminal device and terminal
CN105094169A (en) * 2015-05-29 2015-11-25 小米科技有限责任公司 Monitoring method, apparatus and system for temperature adjustment device and temperature adjustment device
CN105259996B (en) * 2015-09-23 2019-03-22 努比亚技术有限公司 Mobile terminal temperature-adjusting device and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7194646B1 (en) * 1989-10-30 2007-03-20 Texas Instruments Incorporated Real-time thermal management for computers
CN104137024A (en) * 2011-12-22 2014-11-05 英特尔公司 A method, apparatus, and system for energy efficiency and energy conservation including energy efficient processor thermal throttling using deep power down mode
CN104487911A (en) * 2012-07-26 2015-04-01 高通股份有限公司 Autonomous thermal controller for power management IC
CN104122962A (en) * 2013-04-27 2014-10-29 宏碁股份有限公司 Temperature regulation device and method
CN104635789A (en) * 2013-11-11 2015-05-20 联发科技股份有限公司 Thermal management method using micro-throttle and wireless device thereof
CN104360822A (en) * 2014-10-22 2015-02-18 深圳芯邦科技股份有限公司 Chip and control method for working frequency of chip

Also Published As

Publication number Publication date
CN106066813A (en) 2016-11-02

Similar Documents

Publication Publication Date Title
CN105188098B (en) Network switching device and network switching method of mobile terminal
CN105611594B (en) Network switching device and method
US10291771B2 (en) Method for managing electric quantity of battery, mobile terminal and computer storage medium
CN106304037B (en) Virtual SIM card management method and device
CN106909274B (en) Image display method and device
CN106775391B (en) Interface switching device and method
CN105848253B (en) Intelligent network searching method and device and mobile terminal
CN106097952B (en) Terminal display screen resolution adjusting method and terminal
CN105468158B (en) Color adjustment method and mobile terminal
CN107066320B (en) Android process freezing and unfreezing device and method
CN106803860B (en) Storage processing method and device for terminal application
CN106249989B (en) Method for arranging social application program icons during content sharing and mobile terminal
CN106686672B (en) Network connection method and terminal
CN106648105B (en) Antenna switching method and device for intelligent equipment
CN106507418B (en) Cell reselection method and device based on signal strength and mobile terminal
CN106713490B (en) Process freezing and thawing device and method based on network application
CN106161790B (en) Mobile terminal and control method thereof
CN105578620A (en) Network access device and method
CN105722246B (en) Network speed superposition device and method
CN106066813B (en) Resource scheduling device, mobile terminal and resource scheduling method
CN105791541B (en) Screenshot method and mobile terminal
CN105657733B (en) Network stability control device and method
CN106897044B (en) Screen color temperature consistency fault-tolerant method and terminal
CN105722142A (en) Mobile terminal and multilink-based data streaming method
CN106791567B (en) Switching method and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant