Timekeeping method using mixed clock source

A technology of mixing clock sources and clocks, applied in the direction of generating/distributing signals, etc., can solve the problems of non-zero cores unable to receive interrupts, large timing, accumulated errors, etc., to achieve the effect of accurate timing

Active Publication Date: 2012-10-03
JIANGSU LEMOTE TECH CORP
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] 2. Interrupt controller: ClockEvent requires each CPU core to receive clock interrupts, but due to the limitations of some interrupt controllers, non-zero cores may not be able to receive interrupts, so in this case, ClockEvent cannot use an external clock source
Frequent corrections not only waste resources, but also bring large cumulative errors to timing

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Timekeeping method using mixed clock source
  • Timekeeping method using mixed clock source
  • Timekeeping method using mixed clock source

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Below in conjunction with accompanying drawing and specific embodiment, further illustrate the present invention, should be understood that these embodiments are only for illustrating the present invention and are not intended to limit the scope of the present invention, after having read the present invention, those skilled in the art will understand various aspects of the present invention Modifications in equivalent forms all fall within the scope defined by the appended claims of this application.

[0038] This embodiment provides a timing method using a mixed clock source, which is based on (but not limited to) the Loongson-3 multi-core processor platform. This method supports both the traditional periodic timing mode and the new tickless timing mode:

[0039] Periodic timing mode: In this mode, CPU core zero is responsible for timing completely, and other CPUs do not participate. CPU No. 0 can always receive external interrupts, so in order to prevent the trouble...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a timekeeping method using a mixed clock source. The method includes a hardware clock source selection and a software initialization operation. The hardware clock source selection includes that an internal clock source selects a million instructions per second (MIPS) clock source and is used for Clock Event of a non-zero central processing unit (CPU) in a tickless timekeeping mode, and an external clock source selects a high precision event timer (HPET) clock source and is used for Clock Event and Clock Source in a periodic timekeeping mode, Clock Event of a zero CPU in the tickless timekeeping mode and Clock Source in the tickless timekeeping mode. The software initialization operation includes the steps that 1) CPU initialization is performed; 2) the MIPS clock source is registered as Clock Event by each of CPU cores; 3) the MIPS clock source is registered as Clock Source; 4) system device initialization is performed; 5) the HPET clock source is registered as Clock Event by a non-zero core; 6) the HPET clock source is registered as Clock Source; and 7) dynamic core regulation and automatic frequency conversion mechanisms are started. The method simultaneously supports traditional periodic timekeeping modes and recent tickless timekeeping modes.

Description

technical field [0001] The invention relates to a timing method using a mixed clock source, belonging to the field of computer operating systems. Background technique [0002] The operating system is the manager of the computer. As a manager, the operating system needs to maintain time, that is, timekeeping. The most basic function of timing is to obtain the "current time" (Time Of Day, referred to as TOD), and many operating system functions such as process scheduling, software timers, performance sampling statistics, and Network Time Protocol (NTP) are based on the concept of TOD. Up. [0003] The realization of the timing function depends on the "clock source" device on the hardware. For a clearer expression, the related concepts are listed as follows: [0004] Beatless / periodic clock mode: Periodic mode is a traditional timing mode. In this mode, the hardware clock source periodically emits clock interrupts as the main basis for timing. In a multi-core or multi-proce...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F1/08
Inventor 陈华才吴少刚张福新张斌
Owner JIANGSU LEMOTE TECH CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products