A quick start control method, device and electronic equipment
By setting the target frequency range and target core of the processor and scheduling the target process, the problem of long startup time of electronic equipment is solved and the effect of fast startup is achieved.
Patent Information
- Application Number
- CN202210133463.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-14
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-02-14
AI Technical Summary
The system loading and process loading required during the startup process of existing electronic devices result in a long startup time, and a method is needed to shorten the startup time.
By obtaining startup control information, setting the target frequency range and target core of the processor, and scheduling the target process to accelerate the startup process. Specific steps include: obtaining startup control information, setting target frequency parameters and time range based on the control information, controlling the processor scheduler to schedule the target process, and setting it to the target core, so that the processor runs in the target frequency range, and the target process Run on the target kernel.
The target process running speed in the accelerated startup process is achieved, significantly shortening the startup time of electronic equipment.
Smart Images

Figure CN114489824B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically to a quick startup control method, device and electronic equipment. Background Art
[0002] With the development of computer information technology, various electronic devices are widely used in life and study. When an electronic device is started, it will take a certain amount of startup time to load different processes of the system. For example, when an electronic device switches from the off state to the on state, that is, when the electronic device is started, it may be necessary to run preloading, data packet scanning, or interface information loading and other startup processes. The operation of these processes will take up a certain amount of startup time. It can be seen that how to shorten the startup time of electronic devices is also a major problem that needs to be solved. Summary of the invention
[0003] In view of this, this application provides the following technical solutions:
[0004] A quick start control method, the method comprising:
[0005] Obtain control information for starting electronic equipment;
[0006] Obtaining a target frequency parameter based on the control information and setting a target frequency range of a processor of the electronic device, wherein a minimum value of the target frequency range is the target frequency parameter;
[0007] Controlling a scheduler of the processor to schedule at least one target process based on the control information, and setting the at least one target process to a target core of the processor;
[0008] So that in the process of starting the electronic device in response to the control information, the processor runs at the target frequency range, and the at least one target process runs on the target core of the processor.
[0009] Optionally, the target process includes at least one system process or at least one system service in which the operating system of the electronic device is in a running state.
[0010] Optionally, setting the at least one target process to a target kernel of the processor comprises:
[0011] A parameter value of affinity is set for the at least one target process so that the at least one target process has a first priority when running on the target core of the processor.
[0012] Optionally, setting a parameter value of affinity for the at least one target process includes:
[0013] Based on the control information and the state information corresponding to the target process, a parameter value of affinity is set for the at least one target process.
[0014] Optionally, the method further comprises:
[0015] Based on the control information, obtaining a time range, the time range being used to indicate a duration for which the processor operates at the target frequency range;
[0016] The time range of the processor is set.
[0017] Optionally, setting a target frequency range of a processor of the electronic device includes:
[0018] Setting a target frequency range of the processor through a quality of service (QoS) service layer so that the processor is locked at the target frequency range;
[0019] And, setting the time range of the processor includes:
[0020] The time range of the processor is set by the QoS service layer so that the processor runs at the target frequency range and is locked within the time range.
[0021] Optionally, the target core is a first type of core in the processor, and the processing performance of the first type of core is better than that of the second type of core in the processor.
[0022] Optionally, the target frequency parameter is higher than an initial value of the lowest frequency of the processor.
[0023] A quick start control device, the device comprising:
[0024] An obtaining unit, used for obtaining control information for starting an electronic device;
[0025] A first setting unit, configured to obtain a target frequency parameter based on the control information and set a target frequency range of a processor of the electronic device, wherein a minimum value of the target frequency range is the target frequency parameter;
[0026] A second setting unit, configured to control a scheduler of the processor to schedule at least one target process based on the control information, and set the at least one target process to a target kernel of the processor;
[0027] So that in the process of starting the electronic device in response to the control information, the processor runs at the target frequency range, and the at least one target process runs on the target core of the processor.
[0028] An electronic device, comprising:
[0029] Memory, used to store programs;
[0030] A processor is used to execute the program, wherein the program is specifically used to:
[0031] Obtain control information for starting electronic equipment;
[0032] Obtaining a target frequency parameter based on the control information and setting a target frequency range of the processor, wherein a minimum value of the target frequency range is the target frequency parameter;
[0033] Controlling a scheduler of the processor to schedule at least one target process based on the control information, and setting the at least one target process to a target core of the processor;
[0034] So that in the process of starting the electronic device in response to the control information, the processor runs at the target frequency range, and the at least one target process runs on the target core of the processor.
[0035] Through the above technical solutions, it can be known that the present application discloses a control method, device and electronic device for fast startup, including: obtaining control information for starting the electronic device; obtaining a target frequency parameter based on the control information and setting the target frequency range of the processor of the electronic device, the minimum value of the target frequency range being the target frequency parameter; controlling the scheduler of the processor based on the control information to schedule at least one target process, and setting at least one target process to the target core of the processor. In the process of starting the electronic device in response to the control information, the processor runs at the target frequency range and runs the target process in the target core of the processor, which speeds up the running speed of the target process in the startup process and shortens the startup time of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0037] Figure 1 A flowchart of a quick start control method provided in an embodiment of the present application;
[0038] Figure 2 A schematic diagram of a process flow for starting up an electronic device provided in an embodiment of the present application;
[0039] Figure 3A schematic diagram of the structure of a quick start control device provided in an embodiment of the present application;
[0040] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0042] A quick startup control method is provided in an embodiment of the present application. The method can be applied to the startup process of an electronic device to shorten the startup time of the electronic device.
[0043] For details, see Figure 1 , is a flow chart of a quick startup control method provided in an embodiment of the present application, the method may include the following steps:
[0044] S101, obtaining control information for starting an electronic device.
[0045] Among them, the control information may include control trigger information for starting the electronic device, such as the key information of the electronic device power button, the start trigger information of the electronic device touch screen, and correspondingly, if the electronic device is started by biometric information, such as by user fingerprint information, the control information may be the received fingerprint trigger information. On the other hand, the control information may also be for the startup of the electronic device hardware and the startup of the system. Specifically, the control information may include control information for the electronic device motherboard, graphics card, processor and other hardware, as well as control information for starting the electronic device operating system.
[0046] The startup of an electronic device refers to the startup of the state switching of the electronic device, such as the electronic device switching from a first state to a second state. The first state may be the shutdown state of the electronic device, and the second state may be the startup state of the electronic device. That is, the startup of an electronic device refers to the state of the electronic device switching from shutdown to startup, and may also be the restart state of the electronic device after being shut down.
[0047] The control information of starting the electronic device can be obtained through a specific listening thread in the electronic device. In order to quickly obtain the control information of the starting electronic device, in one implementation of the embodiment of the present application, a virtual device or a virtual thread can be created in the kernel layer of the electronic device operating system, which is only used to monitor the control information of the starting electronic device. Specifically, the virtual device or virtual thread can be used to monitor the key message of the power key of the receiving electronic device, so as to obtain the key control information of starting the electronic device. By monitoring the control information of the starting electronic device through the virtual device or virtual thread, the control information can be directly broadcast to the starting system at the bottom of the electronic device, without the need to pass the controller layer by layer through other threads, and it is not affected by other information.
[0048] S102: Obtain a target frequency parameter based on the control information and set a target frequency range of a processor of the electronic device.
[0049] S103 . Control a scheduler of the processor to schedule at least one target process based on the control information, and set the at least one target process to a target core of the processor.
[0050] Usually, electronic devices will run at certain frequency parameters, which mainly refer to the frequency parameters of the electronic device processor (such as central processing unit, CPU), which can also be called the main frequency of the electronic device processor, that is, the operating frequency of the processor during operation (the number of synchronous pulses occurring within 1 second). The larger the frequency parameter of the processor, the faster the processing speed of the electronic device.
[0051] After obtaining the control information for starting the electronic device, the target frequency parameter can be obtained based on the preset frequency parameter corresponding to the target state that needs to be achieved by starting the electronic device in the control information. For example, the target frequency parameter can be a frequency parameter in the initial default startup process of the electronic device, or it can be an initial value higher than the lowest frequency of the processor. The control information for starting the electronic device is different, and the corresponding target frequency parameter can also be different. For example, from a completely shut down state to a power on state, the corresponding control hardware in its control information is small, and the corresponding target frequency parameter can be relatively small. If it is a restart process after shutdown, the corresponding hardware and system threads to be started are large, and the corresponding target frequency parameter can be relatively large. It is also possible to determine the target frequency parameter based on the performance of each processing core corresponding to the electronic device processor, that is, the highest frequency that can be achieved by the processing core is used as the target frequency parameter.
[0052] In an embodiment of the present application, after obtaining the target frequency parameter, it is necessary to further set the target frequency range of the processor of the electronic device, wherein the minimum value of the target frequency range is the target frequency parameter, that is, the frequency of the electronic device processor can be increased to improve the operating speed of the electronic device processor, so that the processor can respond more quickly to the control information of starting the electronic device.
[0053] At the same time, it is also necessary to schedule at least one target process based on the scheduler of the controller to control the processor, and set the at least one target process to the target kernel of the processor. The process to be executed in the process of starting the electronic device can be determined based on the control information, and the key process can be determined as the target process in these threads. For example, the target process can be determined according to the execution sequence of each process, or the target process can be determined according to the importance of each process to the startup of the electronic device. Specifically, the process of calling the display interface, the process of starting the user's personalized configuration, the process of starting the sound card, etc. can be included in the startup of the electronic device. When the electronic device is turned on, in order to give the user a fast startup experience effect, the process of calling the display interface can be used as the target process, so that the processor prioritizes processing the process and prioritizes the loading of the display interface, so that the user can get the fast startup experience effect. In order to further achieve the purpose of fast startup, at least one target process can be set to the target kernel of the processor. So that in the process of starting the electronic device in response to the control information, the processor runs in the target frequency range, and at least one target process runs on the target kernel of the processor.
[0054] A processing kernel (also referred to as a core) is an independent operating unit inside an electronic device processor, which is physically independent and has independent resources. At present, the processor of an electronic device is usually a multi-core processor, generally having 4 processing kernels or 8 processing kernels. The target kernel in the embodiment of the present application refers to a processing kernel with better performance in the processor, and can be a processing kernel with better performance parameters as the target kernel, and the performance parameters may include processing rate parameters, load parameters or operating frequency, etc. Running the target process on the target kernel can further improve the operating rate of the target process. And the processor runs in the target frequency range, which raises the frequency of the processor as a whole, further improves the processing speed of the processor, and thus improves the startup speed of the electronic device.
[0055] In an embodiment of the present application, the target process includes at least one system process or at least one system service in which the operating system of the electronic device is in operation. The operating system (operating system, referred to as OS) is a computer program that manages computer hardware and software resources. When the operating system is in operation, a corresponding system process or system service will be executed. The system process or system service that best matches the control information of the currently started electronic device can be selected as the target process. Among them, the system process refers to an application running in the system, such as a user interface loading process, a resource management process, a session management process, etc. System services refer to programs, routines or processes that perform specified system functions in order to support other programs, especially low-level (close to hardware) programs. When providing services over a network, services can be published in Active Directory, thereby promoting service-centric management and use.
[0056] In one implementation of the embodiment of the present application, setting at least one target process to a target core of a processor includes:
[0057] A parameter value of affinity is set for the at least one target process so that the at least one target process has a first priority when running on the target core of the processor.
[0058] Among them, the affinity of the target process is the tendency of the process to run as long as possible on a given processing core without being migrated to other processing cores. Taking the Linux operating system as an example, all processes have a related data structure, and the data parameters representing the affinity in the data structure of the target process can be changed through the API (Application Programming Interface) provided by the Linux kernel to complete the setting process of the parameter value of the affinity of the target process. Thereby, the target process has the first priority when running on the target core of the processor, wherein the first priority is the highest priority, that is, when the target process runs on the target core, it will not be migrated to other processing cores due to changes in other processes or the target core load. Thereby, the target process is always running on the target core with better processing performance.
[0059] Specifically, setting the affinity parameter value for at least one target process includes: setting the affinity parameter value for at least one target process based on the control information and the state information corresponding to the target process. Based on the control information, the device state to be started by the electronic device can be obtained, and at the same time, different state information of the target process under different conditions can be obtained, such as the running state of the target process, which can be from the non-running state to the running state, or can be always in the running state, etc. Thus, the parameter value of the affinity that can meet the current state information of the target process is set to ensure that it runs at the first priority on the target kernel.
[0060] In another implementation of the embodiment of the present application, the quick start control method further includes:
[0061] Based on the control information, obtaining a time range;
[0062] The time range of the processor is set.
[0063] Among them, the time range is used to indicate the duration of the processor running in the target frequency range. The target frequency range is a range with a higher frequency parameter value corresponding to the electronic device processor. If the processor is always running with the frequency parameter within the target frequency range, the power consumption of the electronic device will be increased. Therefore, the time range of the corresponding processor can be set, that is, the frequency corresponding to the processor on the electronic device side within the time range is the frequency parameter within the target frequency range, thereby improving the processing speed of the processor and reducing the power consumption of the electronic device. The time range can be directly obtained based on the performance parameters of the electronic device processor. The time range can also be obtained based on control information. The control information corresponds to the startup state reached by the control electronic device. The number or type of target processes corresponding to different startup states of the electronic device are different, and the execution time can be different. Therefore, the time range can be set to the time length that can complete the target process corresponding to the control information.
[0064] In one embodiment, setting the target frequency range of the processor of the electronic device includes: setting the target frequency range of the processor through a quality of service QoS service layer, so that the processor is locked with the target frequency range.
[0065] And, setting the time range of the processor includes: setting the time range of the processor through a QoS service layer so that the processor runs at a target frequency range and is locked within the time range.
[0066] QoS (Quality of Service) refers to a network's ability to use various basic technologies to provide better service capabilities for specified network communications. The QoS service layer is an agreed layer for information transmission and sharing between the network and users and between users communicating with each other on the network, which can provide resource scheduling and management. Therefore, the target frequency range and the corresponding time range of the processor can be set through the QoS service layer. When the QoS service layer sets the target frequency range and the corresponding time range, it is equivalent to the management layer. For example, the QoS service layer can receive setting parameters for multiple target frequency ranges. It can determine the final target frequency range based on the priority corresponding to the setting parameters of the multiple target frequency ranges received, and combined with the performance of the current processor, so that there is no need to respond to the settings of other processes, so that the processor is locked in the target frequency range to avoid restoring to the lowest frequency initial value. Thereby ensuring the processing speed of the processor during the startup process of the electronic device. And the time range of the processor is set through the QoS service layer, so that the processor runs in the target frequency range and is locked in the time range, ensuring that the processing speed and processing power consumption of the processor within the time range will not be too high.
[0067] Specifically, the target core of the processor to which the at least one target process is set is a first type of core in the processor, and the processing performance of the first type of core is better than that of the second type of core in the processor.
[0068] The cores of the processor can be divided according to the performance parameters of the cores in the processor, and the cores with higher performance parameters are determined as first-class cores, and the remaining cores are determined as second-class cores. The performance parameters may include processing rate parameters, load parameters, or operating frequency parameters. For example, a corresponding processing rate parameter threshold is set, and the cores corresponding to the threshold are determined as first-class cores, and the remaining cores are determined as second-class cores. This indicates that the target process runs on the first-class core with better performance.
[0069] The following is an example of the process flow of starting up an electronic device with an Android operating system to illustrate the quick startup control method of the embodiment of the present application. Android is a free and open source operating system based on the Linux kernel (excluding GNU components).
[0070] See also Figure 2 , is a schematic diagram of a processing flow for powering on an electronic device provided in an embodiment of the present application.
[0071] exist Figure 2In the user space, the user space is the running space of the user program, which can run the Android system desktop launcher 201 (Launcher, also known as the Android system desktop UI), and can also run the system user interface program 202 (System UI) and the system service 203 (System Server). Figure 2 The kernel space is also included in the Linux kernel. The kernel space can execute any command and call all system resources; the user space can only perform simple operations and cannot directly call system resources. It must go through the system interface to issue instructions to the kernel.
[0072] exist Figure 2 In the embodiment, the kernel space monitoring process 204 can be used to monitor the startup event of the electronic device. Specifically, the monitoring process can create a virtual device in the Linux kernel space, and monitor the startup event of the electronic device through the virtual device. Further, the startup control instruction of the electronic device generated by the power button 206 or the touch screen 207 can be obtained through the device input system 205.
[0073] When the startup event of the electronic device is monitored, that is, the control information for starting the electronic device is obtained, the control information is transmitted to the processor frequency adjustment process 208 and the scheduling process 209 corresponding to the scheduler, and then the processor frequency adjustment process determines the target frequency range of the processor, and at the same time, the target kernel that can achieve the target frequency range can be determined based on the target frequency range. Then the target process is determined by the scheduler, such as determining the system service and the system process as the target process. After obtaining the above-mentioned target frequency range, target process and target kernel, the above-mentioned information can be stored in the kernel process 210, and when the processor runs the target process, the corresponding operation result will be transmitted to the user space process 211.
[0074] Then, the running result of the target process is transmitted layer by layer to Init 212, Zygote 213 and Dalvik VM214, and then transmitted to the user space by DalvikVM, and the corresponding process program in the user space generates the final display result. If the target process is the rendering of the user interface, the user interface is generated by the user interface program in the user space and displayed on the electronic device to complete the startup process of the electronic device. Among them, Init, Zygote and DalvikVM are all universal connection processes between the kernel space and the user space in the Android system. Specifically, Init is a user-level process started by the kernel, Zygote is the core process created by the entire system, and DalvikVM is a virtual machine that interacts with the user space.
[0075] It should be noted that when setting the target frequency range, you can set the target frequency range corresponding to the processor, or you can set the target frequency range corresponding to the processor core through the QoS layer. Different cores can achieve different frequency ranges. You can set the frequency range corresponding to each core separately in combination with the characteristics of the core, and select the core with a higher frequency range as the target core to run the determined target process. When setting the target frequency range, it is mainly to set the minimum value of the target frequency range, that is, the minimum value is the target frequency parameter determined based on the performance of the processor core. And set the time range to lock the time range of the processor to prevent other scheduling strategies in the QoS layer from affecting the target frequency range, that is, to avoid restoring the processor frequency to the original minimum frequency initial value.
[0076] Furthermore, in the kernel space, the affinity parameter value of each process is set, and the target process is scheduled to the target kernel (which may be the kernel with the best performance) for execution based on the parameter value. When the Android system starts a service, it needs to run the corresponding process. The kernel scheduler can perform weighted calculation on each process by the priority parameter and control information corresponding to each process, so as to determine the target process. If the target process is a system service, it can ensure that the target process is run first, that is, it is scheduled to run on the target kernel.
[0077] A fast startup control method provided in an embodiment of the present application can adjust the processor target frequency range, thereby triggering the processor on the kernel thread, and the determination of the target process corresponding to the user space can select the optimal target kernel for operation according to the adjusted frequency, thereby improving the startup speed of the electronic device. Furthermore, scheduling the target process to the target kernel with better performance also further improves the processing efficiency, and the priority operation of the target process also optimizes the startup process of the electronic device and shortens the startup time.
[0078] Another embodiment of the present application also provides a quick start control device, see Figure 3 , the device may include:
[0079] An obtaining unit 301 is used to obtain control information for starting an electronic device;
[0080] A first setting unit 302, configured to obtain a target frequency parameter based on the control information and set a target frequency range of a processor of the electronic device, wherein a minimum value of the target frequency range is the target frequency parameter;
[0081] A second setting unit 303, configured to control the scheduler of the processor to schedule at least one target process based on the control information, and set the at least one target process to a target core of the processor;
[0082] So that in the process of starting the electronic device in response to the control information, the processor runs at the target frequency range, and the at least one target process runs on the target core of the processor.
[0083] In one implementation, the target process includes at least one system process or at least one system service in which the operating system of the electronic device is in a running state.
[0084] Furthermore, the second setting unit includes:
[0085] The first setting subunit is used to set an affinity parameter value for the at least one target process so that the at least one target process has a first priority when running on the target core of the processor.
[0086] Optionally, the first setting subunit is specifically used for:
[0087] Based on the control information and the state information corresponding to the target process, a parameter value of affinity is set for the at least one target process.
[0088] In another embodiment, the device further comprises:
[0089] a time obtaining unit, configured to obtain a time range based on the control information, wherein the time range is used to indicate a duration for which the processor runs at the target frequency range;
[0090] A time setting unit is used to set the time range of the processor.
[0091] Furthermore, the first setting unit is specifically configured to:
[0092] Setting a target frequency range of the processor through a quality of service (QoS) service layer so that the processor is locked at the target frequency range;
[0093] And, the time setting unit is specifically used for:
[0094] The time range of the processor is set by the QoS service layer so that the processor runs at the target frequency range and is locked within the time range.
[0095] Optionally, the target core is a first type of core in the processor, and the processing performance of the first type of core is better than that of the second type of core in the processor.
[0096] Furthermore, the target frequency parameter is higher than an initial value of the lowest frequency of the processor.
[0097] It should be noted that the specific implementation of the corresponding unit in this embodiment can refer to the corresponding content in the previous text and will not be described in detail here.
[0098] The embodiment of the present application provides a control device for fast startup, including: an acquisition unit acquires control information for starting an electronic device; a first setting unit acquires a target frequency parameter based on the control information and sets a target frequency range of a processor of the electronic device, wherein the minimum value of the target frequency range is the target frequency parameter; a second setting unit controls a scheduler of the processor to schedule at least one target process based on the control information, and sets at least one target process to a target core of the processor. In the process of starting the electronic device in response to the control information, the processor runs at the target frequency range and runs the target process in the target core of the processor, thereby accelerating the running speed of the target process in the startup process and shortening the startup time of the electronic device.
[0099] See also Figure 4 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device may include:
[0100] Memory 401, used for storing programs;
[0101] The processor 402 is used to execute the program, and the program is specifically used to:
[0102] Obtain control information for starting electronic equipment;
[0103] Obtaining a target frequency parameter based on the control information and setting a target frequency range of the processor, wherein a minimum value of the target frequency range is the target frequency parameter;
[0104] Controlling a scheduler of the processor to schedule at least one target process based on the control information, and setting the at least one target process to a target core of the processor;
[0105] So that in the process of starting the electronic device in response to the control information, the processor runs at the target frequency range, and the at least one target process runs on the target core of the processor.
[0106] The embodiment of the present application provides an electronic device, which obtains control information for starting the electronic device; obtains a target frequency parameter based on the control information and sets a target frequency range of a processor of the electronic device, wherein the minimum value of the target frequency range is the target frequency parameter; controls a scheduler of the processor based on the control information to schedule at least one target process, and sets at least one target process to a target core of the processor. In the process of starting the electronic device in response to the control information, the processor runs at the target frequency range and runs the target process in the target core of the processor, thereby accelerating the running speed of the target process in the startup process and shortening the startup time of the electronic device.
[0107] It should be noted that the specific implementation of the processor in this embodiment can refer to the corresponding content in the previous text and will not be described in detail here.
[0108] Each embodiment in this specification focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0109] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A quick start control method, the method comprising: Obtain control information for starting electronic equipment; Obtaining a target frequency parameter based on the control information and setting a target frequency range of a processor of the electronic device, wherein a minimum value of the target frequency range is the target frequency parameter; Controlling a scheduler of the processor to schedule at least one target process based on the control information, and setting the at least one target process to a target core of the processor; So that in the process of starting the electronic device in response to the control information, the processor runs at the target frequency range, and the at least one target process runs on the target core of the processor. 2 . The method according to claim 1 , wherein the target process comprises at least one system process or at least one system service in which an operating system of the electronic device is in a running state.
3. The method according to claim 2, wherein setting the at least one target process to a target core of the processor comprises: A parameter value of affinity is set for the at least one target process so that the at least one target process has a first priority when running on the target core of the processor.
4. The method according to claim 3, wherein the step of setting the affinity parameter value for the at least one target process comprises: Based on the control information and the state information corresponding to the target process, a parameter value of affinity is set for the at least one target process.
5. The method according to claim 1, further comprising: Based on the control information, obtaining a time range, the time range being used to indicate a duration for which the processor operates at the target frequency range; The time range of the processor is set.
6. The method according to claim 5, wherein setting the target frequency range of the processor of the electronic device comprises: Setting a target frequency range of the processor through a quality of service (QoS) service layer so that the processor is locked at the target frequency range; And, setting the time range of the processor includes: The time range of the processor is set by the QoS service layer so that the processor runs at the target frequency range and is locked within the time range. 7 . The method according to claim 1 , wherein the target core is a first type of core in the processor, and the processing performance of the first type of core is better than that of the second type of core in the processor. The method according to claim 1 , wherein the target frequency parameter is higher than an initial value of a lowest frequency of the processor.
9. A quick start control device, comprising: An obtaining unit, used for obtaining control information for starting an electronic device; A first setting unit, configured to obtain a target frequency parameter based on the control information and set a target frequency range of a processor of the electronic device, wherein a minimum value of the target frequency range is the target frequency parameter; A second setting unit, configured to control a scheduler of the processor to schedule at least one target process based on the control information, and set the at least one target process to a target kernel of the processor; So that in the process of starting the electronic device in response to the control information, the processor runs at the target frequency range, and the at least one target process runs on the target core of the processor.
10. An electronic device, comprising: Memory, used to store programs; A processor is used to execute the program, wherein the program is specifically used to: Obtain control information for starting electronic equipment; Obtaining a target frequency parameter based on the control information and setting a target frequency range of the processor, wherein a minimum value of the target frequency range is the target frequency parameter; Controlling a scheduler of the processor to schedule at least one target process based on the control information, and setting the at least one target process to a target core of the processor; So that in the process of starting the electronic device in response to the control information, the processor runs at the target frequency range, and the at least one target process runs on the target core of the processor.
