CPU control method, electronic system control method and electronic system for improved CPU utilization in executing functions
First Claim
1. A central processing unit (CPU) control method, for controlling different CPUs including a first CPU and a second CPU, comprising:
- a series of operations to optimize the different CPUs by;
acquiring CPU information from a second register which is accessible in a kernel space but not in a user space;
storing the CPU information in a first register in the kernel space, the first register accessible in the kernel space and the user space;
after the storing is complete, reading the CPU information from the first register in the user space;
in response to the reading, determining which one of the first CPU and the second CPU is operating to perform a first function according to the CPU information stored in the first register;
based on the determining;
applying the first CPU to execute a first group of codes comprising at least one code if the first CPU is operating to perform the first function; and
applying the second CPU to execute a second group of codes comprising at least one code if the second CPU is operating to perform the first function,wherein the first group of codes is optimized for the first CPU, the second group of codes is optimized for the second CPU and the first group of codes comprises at least one code different from codes in the second group of codes.
1 Assignment
0 Petitions
Accused Products
Abstract
A CPU control method for controlling a first CPU and a second CPU The method comprises: (a) applying the first CPU to execute a first group of codes comprising at least one code if the first CPU is operating to perform a first function; and (c) applying the second CPU to execute a second group of codes comprising at least one code if the second CPU is operating to perform the first function. The first group of codes is optimized for the first CPU, the second group of codes is optimized for the second CPU and the first group of codes comprises at least one code different from the code for the second group of codes.
7 Citations
12 Claims
-
1. A central processing unit (CPU) control method, for controlling different CPUs including a first CPU and a second CPU, comprising:
a series of operations to optimize the different CPUs by; acquiring CPU information from a second register which is accessible in a kernel space but not in a user space; storing the CPU information in a first register in the kernel space, the first register accessible in the kernel space and the user space; after the storing is complete, reading the CPU information from the first register in the user space; in response to the reading, determining which one of the first CPU and the second CPU is operating to perform a first function according to the CPU information stored in the first register; based on the determining; applying the first CPU to execute a first group of codes comprising at least one code if the first CPU is operating to perform the first function; and applying the second CPU to execute a second group of codes comprising at least one code if the second CPU is operating to perform the first function, wherein the first group of codes is optimized for the first CPU, the second group of codes is optimized for the second CPU and the first group of codes comprises at least one code different from codes in the second group of codes. - View Dependent Claims (2, 3)
-
4. An electronic system control method, for controlling an electronic system comprising:
subsystems configured to optimize different central processing units (CPUs), the subsystems includes; a first central processing unit (CPU) and a second CPU, comprising; controlling the electronic system to perform a main function comprising at least one sub-function; and performing following steps while the electronic system performing the sub-function; acquiring CPU information from a second register which is accessible in a kernel space but not in a user space; storing the CPU information in a first register in the kernel space, the first register accessible in the kernel space and the user space; after the storing is complete, reading the CPU information from the first register in the user space; in response to the reading, determining which one of the first CPU and the second CPU is operating to perform the sub-function according to the CPU information stored in the first register; based on the determining; applying the first CPU to execute a first group of codes comprising at least one code if it is determined that the first CPU is operating to perform the sub-function; and applying the second CPU to execute a second group of codes comprising at least one code if it is determined that the second CPU is operating to perform the sub-function, wherein the first group of codes is optimized for the first CPU, the second group of codes is optimized for the second CPU and the first group of codes comprises at least one code different from codes in the second group of codes. - View Dependent Claims (5, 6)
-
7. An electronic system, comprising:
-
subsystems configured to optimize different central processing units (CPUs), the subsystems includes; a first central processing unit (CPU); a second CPU; and a determiner configured to execute a determining program to determine which one of the first CPU and the second CPU is operating to perform a first function, wherein; the determiner acquires CPU information from a second register, which is accessible in a kernel space but not in a user space, and stores the CPU information to a first register in the kernel space; after the storing is complete, the determiner reads the CPU information from the first register in the user space; in response to the reading, the determiner performs the determining according to the CPU information stored in the first register which is accessible in the kernel space and the user space; based on the determining; if the first CPU operates to perform the first function, the first CPU executes a first group of codes; if the second CPU operates to perform the first function, the second CPU executes a second group of codes, wherein the first group of codes is optimized for the first CPU, the second group of codes is optimized for the second CPU, and wherein the first group of codes comprises at least one code different from codes in the second group of codes. - View Dependent Claims (8, 9)
-
-
10. An electronic system, comprising:
subsystems configured to optimize different central processing units (CPUs), the subsystems includes; a determiner configured to determine which one of a first CPU and a second CPU is operating to perform a first sub-function according to CPU information stored in a first register which is accessible in a kernel space and a user space, wherein; before determining which one of the first CPU and the second CPU is operating to perform the first sub-function; the determiner acquires the CPU information from a second register, which is accessible in the kernel space but not in the user space, and stores the CPU information to the first register in the kernel space; and after the storing is complete, the determiner reads the CPU information from the first register in the user space; based on the determining; the CPU configured to execute a first group of codes comprising at least one code if the first CPU is operating to perform the first sub-function included in a main function, wherein the first group of codes comprises at least one code different from codes in the second group of codes; and the second CPU, configured to execute a second group of codes comprising at least one code if the second CPU is operating to perform the first sub-function. - View Dependent Claims (11, 12)
Specification