[go: up one dir, main page]

CN114489824B - Control method and device for quick start and electronic equipment - Google Patents

Control method and device for quick start and electronic equipment Download PDF

Info

Publication number
CN114489824B
CN114489824B CN202210133463.XA CN202210133463A CN114489824B CN 114489824 B CN114489824 B CN 114489824B CN 202210133463 A CN202210133463 A CN 202210133463A CN 114489824 B CN114489824 B CN 114489824B
Authority
CN
China
Prior art keywords
target
processor
control information
target frequency
electronic device
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
CN202210133463.XA
Other languages
Chinese (zh)
Other versions
CN114489824A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202210133463.XA priority Critical patent/CN114489824B/en
Publication of CN114489824A publication Critical patent/CN114489824A/en
Application granted granted Critical
Publication of CN114489824B publication Critical patent/CN114489824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4403Processor initialisation
    • 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a control method and device for quick start and electronic equipment, comprising the following steps: obtaining control information for starting the 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 the minimum value of the target frequency range is the target frequency parameter; the scheduler controlling the processor based on the control information schedules at least one target process and sets the at least one target process to a target kernel of the processor. In the process of starting the electronic equipment in response to the control information, the processor operates in a target frequency range and operates the target process in a target kernel of the processor, so that the operation speed of the target process in the starting process is accelerated, and the starting time of the electronic equipment is shortened.

Description

Control method and device for quick start and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for controlling quick start, and an electronic device.
Background
With the development of computer information technology, various electronic devices are widely used in life and learning. When the electronic device is started, a certain starting time is required due to loading of different processes of the system. For example, when the electronic device is switched from the off state to the on state, that is, when the electronic device is started, it may be necessary to run a boot process such as preloading, packet scanning, or loading interface information, and these processes may occupy a certain boot time. It can be seen how to shorten the starting time of the electronic device is also a major problem to be solved.
Disclosure of Invention
In view of this, the present application provides the following technical solutions:
a method of fast start control, the method comprising:
obtaining control information for starting the 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 the 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 kernel of the processor;
such that in response to the control information, the processor operates at the target frequency range and the at least one target process operates on the target kernel of the processor during the booting of the electronic device.
Optionally, the target process includes at least one system process or at least one system service of the operating system of the electronic device in a running state.
Optionally, the setting the at least one target process to the target kernel of the processor includes:
Setting a parameter value of affinity for the at least one target process such that the at least one target process has a first priority when running on a target kernel of the processor.
Optionally, the setting the parameter value of the affinity for the at least one target process includes:
and setting parameter values of affinities for the at least one target process based on the control information and the state information corresponding to the target process.
Optionally, the method further comprises:
based on the control information, obtaining a time range, wherein the time range is used for indicating the duration of the processor running in the target frequency range;
The time range of the processor is set.
Optionally, the setting the target frequency range of the processor of the electronic device includes:
Setting a target frequency range of the processor through a quality of service QoS service layer so that the processor locks with the target frequency range;
and said setting said time range of said processor comprises:
the time range of the processor is set by the QoS service layer such that the processor is locked to operate within the time range at the target frequency range.
Optionally, the target kernel is a first type kernel in the processor, and the processing performance of the first type kernel is better than that of a second type kernel in the processor.
Optionally, the target frequency parameter is higher than a lowest frequency initial value of the processor.
A quick-start control device, the device comprising:
An obtaining unit, configured to obtain control information for starting the 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, a minimum value of the target frequency range being 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;
such that in response to the control information, the processor operates at the target frequency range and the at least one target process operates on the target kernel of the processor during the booting of the electronic device.
An electronic device, the electronic device comprising:
A memory for storing a program;
a processor, configured to execute the program, where the program is specifically configured to:
obtaining control information for starting the electronic equipment;
Obtaining a target frequency parameter based on the control information and setting a target frequency range of the processor, wherein the 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 kernel of the processor;
such that in response to the control information, the processor operates at the target frequency range and the at least one target process operates on the target kernel of the processor during the booting of the electronic device.
As can be seen from the above technical solution, the present application discloses a fast start control method, a fast start control device, and an electronic device, including: obtaining control information for starting the 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 the minimum value of the target frequency range is the target frequency parameter; the scheduler controlling the processor based on the control information schedules at least one target process and sets the at least one target process to a target kernel of the processor. In the process of starting the electronic equipment in response to the control information, the processor operates in a target frequency range and operates the target process in a target kernel of the processor, so that the operation speed of the target process in the starting process is accelerated, and the starting time of the electronic equipment is shortened.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a fast start control method according to an embodiment of the present application;
Fig. 2 is a schematic diagram of a process flow of starting up an electronic device according to an embodiment of the present application;
Fig. 3 is a schematic structural diagram of a fast-starting control device according to an embodiment of the present application;
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application provides a control method for quick start, which can be applied to the starting process of electronic equipment to shorten the starting time of the electronic equipment.
Specifically, referring to fig. 1, a flowchart of a fast-start control method provided in an embodiment of the present application may include the following steps:
S101, obtaining control information for starting the electronic equipment.
The control information may include control trigger information for starting the electronic device, for example, key information of a power key of the electronic device, and start trigger information of a touch screen of the electronic device, and correspondingly, if the electronic device is started through biometric information, for example, the electronic device is started through fingerprint information of a user, the control information may be received fingerprint trigger information. On the other hand, the control information may also be the start of hardware of the electronic device and the start of a system, and specifically, the control information may include control information for hardware such as a motherboard, a graphics card, a processor, and the like of the electronic device, and control information for starting an operating system of the electronic device.
The starting of the electronic device refers to the starting of state switching of the electronic device, for example, the electronic device is switched from a first state to a second state, the first state may be a power-off state of the electronic device, and the second state may be a power-on state of the electronic device, that is, the starting of the electronic device refers to the state of the electronic device from power-off to power-on, and may also be a restarting state after power-off of the electronic device.
In order to quickly obtain the control information of the starting electronic device, in one implementation manner of the embodiment of the application, a virtual device or a virtual thread can be created in a kernel layer of an operating system of the electronic device, and the virtual device or the virtual thread is only used for monitoring the control information of the starting electronic device, specifically, the virtual device or the virtual thread can be used for monitoring and receiving key messages of a switch key of the electronic device, so as to obtain the key control information of the starting electronic device. The control information of the electronic equipment is started through the virtual equipment or the virtual thread, so that the control information can be directly broadcast to a starting system at the bottom layer of the electronic equipment, the controller does not need to be transferred layer by layer through other threads, and the controller is not influenced by other information.
S102, obtaining a target frequency parameter based on the control information and setting a target frequency range of a processor of the electronic device.
S103, controlling a scheduler of a processor to schedule at least one target process based on control information, and setting the at least one target process to a target kernel of the processor.
Typically, an electronic device will operate with a certain frequency parameter, where the frequency parameter mainly refers to a frequency parameter of a processor (such as a central processing unit, CPU) of the electronic device, and may also be referred to as a main frequency of the processor of the electronic device, that is, an operating frequency (a number of synchronous pulses occurring in 1 second) during operation of the processor. The greater the frequency parameter of the processor, the faster the processing speed of the electronic device.
After the control information of the starting electronic device is obtained, the target frequency parameter can be obtained based on the preset frequency parameter corresponding to the target state which needs to be reached by the starting electronic device in the control information. For example, the target frequency parameter may be a frequency parameter during an initial default startup of the electronic device, or may be a frequency 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 parameters can also be different. For example, from a complete shutdown state to a startup state, the number of corresponding control hardware in the control information is relatively small, the corresponding target frequency parameter may be relatively small, if the restart process is performed after shutdown, the corresponding hardware and system threads to be started are relatively large, and the corresponding target frequency parameter may be relatively large. It is also possible to determine the target frequency parameter, i.e. the highest frequency achievable by the processing core, as the target frequency parameter based on the performance of the respective processing core to which the electronic device processor corresponds.
In the embodiment of the application, after the target frequency parameter is obtained, the target frequency range of the processor of the electronic equipment needs to be further set, wherein the minimum value of the target frequency range is the target frequency parameter, namely, the frequency of the processor of the electronic equipment can be raised, so that the running speed of the processor of the electronic equipment is improved, and the processor can respond to the control information for starting the electronic equipment more quickly.
At the same time, it is also necessary to control a scheduler of a processor based on a controller to schedule at least one target process and set the at least one target process to a target kernel of the processor. The processes to be executed in the process of starting the electronic device can be determined based on the control information, and key processes are determined as target processes in the threads, for example, the target processes can be determined according to the execution sequence of each process, and the target processes can also be determined according to the importance degree of each process on the starting of the electronic device. Specifically, the process of calling the display interface, the process of starting the personalized configuration of the user, the process of starting the sound card and the like can be included in the starting electronic equipment. When the electronic equipment is started, in order to achieve the experience effect of quick starting of a user, a process of calling the display interface can be used as a target process, so that the processor can process the process preferentially and load the display interface preferentially, and the user can obtain the experience effect of quick starting. For further rapid start purposes, at least one target process may be set to a target kernel of the processor. Such that in response to the control information, the processor operates at a target frequency range and at least one target process operates on a target kernel of the processor.
The processing cores (also referred to as cores) are separate execution units within the electronic device processor that are physically separate, having separate resources. Processors of current electronic devices are typically multi-core processors, typically having 4 processing cores or 8 processing cores. The target core in the embodiment of the application refers to a processing core with better performance in a processor, and can be a processing core with better performance parameters as the target core, wherein the performance parameters can include a processing rate parameter, a load parameter, a working frequency or the like. And the target process is operated on the target kernel, so that the operation rate of the target process can be further improved. And the processor operates in a target frequency range, so that the frequency of the processor is increased as a whole, the processing speed of the processor is further increased, and the starting speed of the electronic equipment is further increased.
In an embodiment of the present application, the target process includes 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. An Operating System (OS) is a computer program that manages computer hardware and software resources. When the operating system is in an operating state, a corresponding system process or system service is executed. A system process or a system service that best matches the control information of the currently started electronic device may be selected as the target process. The system process refers to an application program running in the system, and may include a user interface loading process, a resource management process, a session management process, and the like. System services (SYSTEM SERVICES) refer to programs, routines, or processes that perform specified system functions in order to support other programs, particularly the underlying (near hardware) programs. When a service is provided through a network, the service can be published in an Active Directory, thereby facilitating service-centric management and use.
In one implementation of the embodiment of the present application, the setting at least one target process to a target kernel of a processor includes:
Setting a parameter value of affinity for the at least one target process such that the at least one target process has a first priority when running on a target kernel of the processor.
Wherein affinity (affinity) of a target process is the tendency of a process to run on a given processing core for as long as possible without being migrated to other processing cores. Taking Linux operating system as an example, all processes have a related data structure, and the data parameters representing the affinity of the data structure of the target process can be changed through an API (Application Programming Interface, application program interface) provided by the Linux kernel, so as to complete the process of setting the parameter values of the affinity of the target process. Therefore, the target process has the first priority when running on the target kernel of the processor, wherein the first priority is the highest priority, namely, the target process cannot migrate to other processing kernels due to other processes or changes of the load of the target kernel when running on the target kernel. And further, the target process runs on the target kernel with better processing performance all the time.
Specifically, setting the parameter values of affinity for at least one target process includes: and setting parameter values of affinities for at least one target process based on the control information and the state information corresponding to the target process. The device state of the electronic device to be started and entered can be obtained based on the control information, and meanwhile, different state information of the target process can be obtained under different conditions, for example, the running state of the target process can be from a non-running state to a running state, can be always in the running state, and the like. Thereby setting a parameter value capable of satisfying the affinity of the current state information of the target process to ensure the first priority of the target process running on the target kernel.
In another implementation manner of the embodiment of the present application, the fast start control method further includes:
Obtaining a time range based on the control information;
The time range of the processor is set.
Wherein the time range is used to indicate a duration that the processor is operating in the target frequency range. The target frequency range is a range with a higher frequency parameter value corresponding to the processor of the electronic device, and if the processor runs with the frequency parameter in the target frequency range all the time, the power consumption of the electronic device is increased. Therefore, the time range of the corresponding processor can be set, namely, the frequency corresponding to the processor at the side of the electronic equipment in the time range is the frequency parameter in the target frequency range, so that the processing speed of the processor can be improved, and the power consumption of the electronic equipment can be reduced. The time frame may be obtained directly based on performance parameters of the electronic device processor. The time range may also be obtained based on control information, where the control information corresponds to a start state reached by the control electronic device, and the number or types of target processes corresponding to different start states of the electronic device may be different, and the execution duration may be different, so that the time range may be set to a duration capable of completing the target process corresponding to the control information.
In one embodiment, the setting the target frequency range of the processor of the electronic device includes: the target frequency range of the processor is set by a quality of service QoS service layer so that the processor locks with the target frequency range.
And, said setting said time range of the processor comprises: the time range of the processor is set by a QoS service layer such that the processor is locked to operate within the time range at a target frequency range.
QoS (Quality ofService ) refers to the ability of a network to utilize various underlying technologies to provide better service capabilities for a given network communication. The QoS service layer is a provisioning layer for information transfer and sharing between the network and users and between users communicating with each other over the network, which may provide resource scheduling and management. Thus, the target frequency range of the processor and the corresponding time range may be set by the QoS service layer. When the QoS service layer sets the target frequency range and the corresponding time range, the QoS service layer is equivalent to the management layer, for example, the QoS service layer may receive setting parameters of multiple target frequency ranges, and may determine the final target frequency range based on priorities corresponding to the received setting parameters of multiple target frequency ranges, and combine the performance of the current processor, so that it is not necessary to respond to the setting of other processes any more, so that the processor locks with the target frequency range, and avoids restoring to the lowest frequency initial value. Thereby ensuring the processing speed of the processor during the start-up of the electronic device. And the time range of the processor is set through the QoS service layer, so that the processor is locked in the time range when running in the target frequency range, and the processing speed and the processing power consumption of the processor in the time range are ensured not to be excessively high.
Specifically, the target kernel of the processor to which the at least one target process is set is a first type kernel in the processor, and the processing performance of the first type kernel is better than that of a second type kernel in the processor.
The cores of the processor can be divided according to the performance parameters of the cores in the processor, the cores with higher performance parameters are determined to be the first type cores, and the rest cores are determined to be the second type cores. The performance parameter may be included in a processing rate parameter, a load parameter, or an operating frequency parameter, among others. For example, a corresponding processing rate parameter threshold is set, the cores corresponding to the threshold are more than the threshold are the first type cores, and the rest cores are the second type cores. To characterize that the target process is running on a first type of kernel with better performance.
The following describes a fast start control method in the embodiment of the present application by taking a process flow of starting up an electronic device with an operating system as Android (Android) as an example. Android (Android) is an operating system based on free and open source code of the Linux kernel (without GNU components).
Fig. 2 is a schematic diagram of a process flow of starting up an electronic device according to an embodiment of the present application.
In fig. 2, a User space (User space) is a running space of a User program, which may run an android System desktop Launcher 201 (also referred to as a desktop UI of the android System), and may also run a System User interface program 202 (System UI) and a System service 203 (SYSTEM SERVER). Also included in FIG. 2 is kernel space (KERNEL SPACE), which is the running space of the Linux kernel. The kernel space can execute any command and call all resources of the system; the user space can only execute simple operation, can not directly call the system resource, and can send out instructions to the kernel through the system interface.
In fig. 2, the kernel space monitoring process 204 may be used to monitor the start event of the electronic device, and in particular, the monitoring process may be to create a virtual device in the Linux kernel space, and monitor the start event of the electronic device through the virtual device. The power key 206 or the start control instruction of the electronic device generated by the touch screen 207 may further be obtained through the device input system 205.
When a start event of the electronic device is monitored, that is, after control information for starting the electronic device is obtained, the control information is transmitted to a processor frequency adjustment process 208 and a scheduling process 209 corresponding to the scheduler, and then the processor frequency adjustment process determines a target frequency range of the processor, and a target kernel capable of realizing the target frequency range can be determined based on the target frequency range. The target process is then determined by the scheduler, such as by determining the system service and the system process as the target process. After the target frequency range, the target process and the target kernel are obtained, the information may be stored in the kernel process 210, and when the processor runs the target process, the corresponding running result may be transmitted to the user space process 211.
And then, transmitting the running results of the target process into the Init 212, zygote and the Dalvik VM 214 layer by layer, transmitting the running results to the user space by DalvikVM, and generating a final display result by a corresponding process program in the user space, wherein if the target process is 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 so as to complete the starting process of the electronic device. Wherein Init, zygate and DalvikVM are all universal connection processes for kernel space and user space in the android system. Specifically, init is a user-level process initiated by the kernel, zygote is a core process created by the entire system, and DalvikVM is a virtual machine that interacts with the user space.
It should be noted that, when the target frequency range is set, the target frequency range corresponding to the processor may be set, or the target frequency range corresponding to the processor kernel may be set through the QoS layer, the frequency ranges that may be achieved by different kernels are different, the frequency ranges corresponding to each kernel may be set respectively in combination with the characteristics of the kernels, and the kernel with a higher frequency range is selected as the target kernel to run the determined target process. The target frequency range is mainly set to be the minimum value of the target frequency range, namely, the minimum value is a target frequency parameter determined based on the performance of the processor core. And setting a time range, locking the time range of the processor, and preventing other scheduling strategies in the QoS layer from influencing the target frequency range, namely avoiding restoring the frequency of the processor to the original minimum frequency initial value.
Further, in the kernel space, parameter values of affinities of the respective processes are set, and the target process is scheduled to be executed by a target kernel (which may be a kernel with optimal performance) based on the parameter values. When the android system starts the service, the corresponding process needs to be operated, and weighting calculation can be performed on each process through the priority parameter and the control information corresponding to each process by the kernel scheduler, so that a target process, such as the target process, is determined to serve as the system, and the target process is guaranteed to be operated preferentially, namely, is scheduled to the target kernel to be operated.
According to the control method for quick start provided by the embodiment of the application, the target frequency range of the processor can be adjusted, so that the processor is triggered on the kernel thread, and the optimal target kernel can be selected to run according to the adjusted frequency by determining the target process corresponding to the user space, thereby improving the starting speed of the electronic equipment. Furthermore, the target process is scheduled to the target kernel with better performance, so that the processing efficiency is further improved, the starting process of the electronic equipment is optimized by the preferential operation of the target process, and the starting time is shortened.
In another embodiment of the present application, there is also provided a control device for quick start, referring to fig. 3, the device may include:
An obtaining unit 301, configured to obtain control information for starting the electronic device;
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, where a minimum value of the target frequency range is the target frequency parameter;
A second setting unit 303, 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;
such that in response to the control information, the processor operates at the target frequency range and the at least one target process operates on the target kernel of the processor during the booting of the electronic device.
In one implementation, the target process includes at least one system process or at least one system service of the operating system of the electronic device in a running state.
Further, the second setting unit includes:
a first setting subunit, configured to set a parameter value of affinity for the at least one target process, so that the at least one target process has a first priority when running on a target kernel of the processor.
Optionally, the first setting subunit is specifically configured to:
and setting parameter values of affinities for the at least one target process based on the control information and the state information corresponding to the target process.
In another embodiment, the apparatus further comprises:
A time obtaining unit configured to obtain a time range based on the control information, the time range being used to indicate a duration of the processor running in the target frequency range;
And the time setting unit is used for setting the time range of the processor.
Further, the first setting unit is specifically configured to:
Setting a target frequency range of the processor through a quality of service QoS service layer so that the processor locks with the target frequency range;
And, the time setting unit is specifically configured to:
the time range of the processor is set by the QoS service layer such that the processor is locked to operate within the time range at the target frequency range.
Optionally, the target kernel is a first type kernel in the processor, and the processing performance of the first type kernel is better than that of a second type kernel in the processor.
Further, the target frequency parameter is higher than a lowest frequency initial value of the processor.
It should be noted that, the specific implementation of the corresponding unit in this embodiment may refer to the corresponding content in the foregoing, which is not described in detail herein.
The embodiment of the application provides a control device for quick start, which comprises the following components: the obtaining unit obtains control information for starting the electronic equipment; the first setting unit 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; the second setting unit controls a scheduler of the processor to schedule at least one target process based on the control information, and sets the at least one target process to a target kernel of the processor. In the process of starting the electronic equipment in response to the control information, the processor operates in a target frequency range and operates the target process in a target kernel of the processor, so that the operation speed of the target process in the starting process is accelerated, and the starting time of the electronic equipment is shortened.
Referring to fig. 4, a schematic structural diagram of an electronic device according to an embodiment of the present application may include:
A memory 401 for storing a program;
A processor 402, configured to execute the program, where the program is specifically configured to:
obtaining control information for starting the electronic equipment;
Obtaining a target frequency parameter based on the control information and setting a target frequency range of the processor, wherein the 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 kernel of the processor;
such that in response to the control information, the processor operates at the target frequency range and the at least one target process operates on the target kernel of the processor during the booting of the electronic device.
The embodiment of the application provides electronic equipment, which is realized by acquiring control information for starting the 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 the minimum value of the target frequency range is the target frequency parameter; the scheduler controlling the processor based on the control information schedules at least one target process and sets the at least one target process to a target kernel of the processor. In the process of starting the electronic equipment in response to the control information, the processor operates in a target frequency range and operates the target process in a target kernel of the processor, so that the operation speed of the target process in the starting process is accelerated, and the starting time of the electronic equipment is shortened.
It should be noted that, the specific implementation of the processor in this embodiment may refer to the corresponding content in the foregoing, which is not described in detail herein.
In this specification, each embodiment is mainly described in the specification as a difference from other embodiments, and the same similar parts between the embodiments are 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 points refer to the description of the method section.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of fast start control, the method comprising:
obtaining control information for starting the 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 the 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 kernel of the processor;
such that in response to the control information, the processor operates at the target frequency range and the at least one target process operates on the target kernel of the processor during the booting of the electronic device.
2. The method of claim 1, the target process comprising at least one system process or at least one system service of an operating system of the electronic device in a running state.
3. The method of claim 2, the setting the at least one target process to a target kernel of the processor, comprising:
Setting a parameter value of affinity for the at least one target process such that the at least one target process has a first priority when running on a target kernel of the processor.
4. A method according to claim 3, said setting parameter values of affinity for said at least one target process, comprising:
and setting parameter values of affinities for the at least one target process based on the control information and the state information corresponding to the target process.
5. The method of claim 1, the method further comprising:
based on the control information, obtaining a time range, wherein the time range is used for indicating the duration of the processor running in the target frequency range;
The time range of the processor is set.
6. The method of claim 5, the setting a target frequency range for a processor of the electronic device, comprising:
Setting a target frequency range of the processor through a quality of service QoS service layer so that the processor locks with the target frequency range;
and said setting said time range of said processor comprises:
the time range of the processor is set by the QoS service layer such that the processor is locked to operate within the time range at the target frequency range.
7. The method of claim 1, the target core being a first type of core in the processor, the first type of core having a better processing performance than a second type of core in the processor.
8. The method of claim 1, the target frequency parameter being higher than a lowest frequency initial value of the processor.
9. A quick-start control device, the device comprising:
An obtaining unit, configured to obtain control information for starting the 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, a minimum value of the target frequency range being 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;
such that in response to the control information, the processor operates at the target frequency range and the at least one target process operates on the target kernel of the processor during the booting of the electronic device.
10. An electronic device, the electronic device comprising:
A memory for storing a program;
a processor, configured to execute the program, where the program is specifically configured to:
obtaining control information for starting the electronic equipment;
Obtaining a target frequency parameter based on the control information and setting a target frequency range of the processor, wherein the 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 kernel of the processor;
such that in response to the control information, the processor operates at the target frequency range and the at least one target process operates on the target kernel of the processor during the booting of the electronic device.
CN202210133463.XA 2022-02-14 2022-02-14 Control method and device for quick start and electronic equipment Active CN114489824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210133463.XA CN114489824B (en) 2022-02-14 2022-02-14 Control method and device for quick start and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210133463.XA CN114489824B (en) 2022-02-14 2022-02-14 Control method and device for quick start and electronic equipment

Publications (2)

Publication Number Publication Date
CN114489824A CN114489824A (en) 2022-05-13
CN114489824B true CN114489824B (en) 2024-08-23

Family

ID=81481312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210133463.XA Active CN114489824B (en) 2022-02-14 2022-02-14 Control method and device for quick start and electronic equipment

Country Status (1)

Country Link
CN (1) CN114489824B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867896A (en) * 2015-11-24 2016-08-17 乐视移动智能信息技术(北京)有限公司 Method and system for increasing startup speed of intelligent terminal
CN110309640A (en) * 2019-07-01 2019-10-08 联想(北京)有限公司 Electronic equipment starting-up method and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9671853B2 (en) * 2014-09-12 2017-06-06 Intel Corporation Processor operating by selecting smaller of requested frequency and an energy performance gain (EPG) frequency
CN107256150A (en) * 2017-05-27 2017-10-17 深圳酷旗互联网有限公司 It is a kind of to shorten the method to set up without screen Android device starting up's time

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867896A (en) * 2015-11-24 2016-08-17 乐视移动智能信息技术(北京)有限公司 Method and system for increasing startup speed of intelligent terminal
CN110309640A (en) * 2019-07-01 2019-10-08 联想(北京)有限公司 Electronic equipment starting-up method and electronic equipment

Also Published As

Publication number Publication date
CN114489824A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
KR101399161B1 (en) System and method for initiating a multi-environment operating system
US10977070B2 (en) Control system for microkernel architecture of industrial server and industrial server comprising the same
KR101702729B1 (en) System and method for switching between environments in a multi-environment operating system
US9348633B2 (en) Multi-environment operating system
US8639772B2 (en) Centralized application resource manager
JP4367856B2 (en) Process control system and control method thereof
US20120173986A1 (en) Background synchronization within a multi-environment operating system
CN113094111B (en) Device and method for starting device
US11671379B1 (en) System and method for subscription management using dynamically composed management entities
JP6263981B2 (en) Information processing apparatus, information processing apparatus activation method, and program
WO2011117987A1 (en) Multi-core system and start-up method
CN111045789A (en) Virtual machine starting method and device, electronic equipment and storage medium
CN114489824B (en) Control method and device for quick start and electronic equipment
EP2280345A1 (en) A device for and a method of managing computer tasks
CN116431226A (en) Operating system switching method and device, electronic device, storage medium
JPH1153176A (en) Environment selecting method for electronic computer
CN114153502B (en) Control method of starting-up start-up item, storage medium and terminal equipment
KR20250046989A (en) Electronic device and method for managing resources
JP7665495B2 (en) Process Schedule Method
CN116627623A (en) Thread optimization method, thread optimization device, terminal and computer-readable storage medium
CN118377589A (en) Process isolation method and device based on Linux operating system and electronic equipment
CN120144158A (en) Upgrade processing method and electronic equipment
JP2016153952A (en) Information processor, start processing method, and start processing program
RU2574205C2 (en) Multi-environment operating system
CN119604852A (en) Computer system, task scheduling device, waiting process awakening method and program

Legal Events

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