JPH10143274A - CPU clock control device - Google Patents
CPU clock control deviceInfo
- Publication number
- JPH10143274A JPH10143274A JP8298923A JP29892396A JPH10143274A JP H10143274 A JPH10143274 A JP H10143274A JP 8298923 A JP8298923 A JP 8298923A JP 29892396 A JP29892396 A JP 29892396A JP H10143274 A JPH10143274 A JP H10143274A
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- clock
- task
- usage
- scheduler
- 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.)
- Pending
Links
- 238000010586 diagram Methods 0.000 description 8
- 238000000034 method Methods 0.000 description 8
- 230000007704 transition Effects 0.000 description 6
- 238000009795 derivation Methods 0.000 description 5
- 230000002093 peripheral effect Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 239000013256 coordination polymer Substances 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
Landscapes
- Power Sources (AREA)
- Calculators And Similar Devices (AREA)
Abstract
(57)【要約】
【課題】 CPUの消費電力を低減することが可能なC
PUのクロック制御装置を提供することにある。
【解決手段】 スケジューラ2は、タスク1〜3のうち
順次、一つだけを選択し、処理回路3に出力し、処理回
路3は、選択されたタスクを実行する。また、セレクタ
9は、スケジューラ2によって選択されるタスクに対応
するCPUの使用量を記憶装置6〜8から読み出し、記
憶回路10に出力する。記憶回路10は、セレクタ9か
ら入力されるCPUの使用量を一時的に記憶し、比較器
11は、CPU速度対クロック表12を参照して、記憶
回路10から入力される現在選択されているタスクのC
PUの使用量に対応するクロック値を読み出してクロッ
ク選択回路13に出力し、クロック選択回路13は、入
力されるクロック値に基づいてクロックを切り替える。
(57) [Summary] [PROBLEMS] C capable of reducing power consumption of CPU
An object of the present invention is to provide a PU clock control device. SOLUTION: A scheduler 2 sequentially selects only one of tasks 1 to 3 and outputs the same to a processing circuit 3, and the processing circuit 3 executes the selected task. Further, the selector 9 reads the usage amount of the CPU corresponding to the task selected by the scheduler 2 from the storage devices 6 to 8 and outputs it to the storage circuit 10. The storage circuit 10 temporarily stores the CPU usage amount input from the selector 9, and the comparator 11 refers to the CPU speed vs. clock table 12 and selects the currently selected input from the storage circuit 10. Task C
A clock value corresponding to the PU usage is read and output to the clock selection circuit 13, and the clock selection circuit 13 switches the clock based on the input clock value.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、CPUのクロック
制御装置に係り、詳細には、CPUの動作クロック値を
制御して、CPUの消費電力を低減させたCPUのクロ
ック制御装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock control device for a CPU, and more particularly, to a clock control device for a CPU which controls an operation clock value of the CPU to reduce power consumption of the CPU.
【0002】[0002]
【従来の技術】近時、パソコン等の電子機器において
は、消費電力を低減するために種々の方法が採用されて
いる。例えば、ノートパソコンの低消費回路において
は、キーボード装置などが一定時間入力がない場合に
は、モニタの電源を低消費モードに移行させたり、また
フロッピーなどの二次記憶装置などが同じく所定時間ア
クセスがない場合にモータなどを止めるなどの処理を行
っている。2. Description of the Related Art Recently, various methods have been adopted in electronic devices such as personal computers in order to reduce power consumption. For example, in a low power consumption circuit of a notebook personal computer, when there is no input from a keyboard device for a certain period of time, the power supply of the monitor is shifted to a low power consumption mode, and a secondary storage device such as a floppy is also accessed for a predetermined time. If there is no such processing, processing such as stopping the motor is performed.
【0003】また、電子手帳等の情報携帯端末器などで
見られる低消費回路にあっては、同じくキーボードやタ
ッチパネルなどが所定時間入力がない場合に、バックア
ップの必要な最低限のメモリや割り込み制御などだけに
低電圧供給を行い、周辺回路の電源を供給するのを停止
していた。In a low-consumption circuit such as a personal digital assistant such as an electronic organizer, when a keyboard or a touch panel is not input for a predetermined period of time, a minimum memory and an interrupt control required for backup are required. And so on, and supply of power to peripheral circuits has been stopped.
【0004】ところで、近時、電子機器においては、高
機能化が進んでおり、それに伴って、高性能かつ高速な
CPUが搭載されるようになってきている。CPUでは
動作クロックの周波数が高くなると消費電力が大とな
る。In recent years, electronic devices have become increasingly sophisticated, and accordingly, high-performance and high-speed CPUs have been mounted. In a CPU, power consumption increases as the frequency of an operation clock increases.
【0005】[0005]
【発明が解決しようとする課題】しかしながら、上述し
た如く、電子機器にあっては、高速なCPUを搭載して
いるため、CPUによる消費電力が大となるという問題
がある。However, as described above, the electronic equipment has a problem that the power consumption by the CPU becomes large because the electronic equipment is equipped with a high-speed CPU.
【0006】本発明の課題は、CPUの消費電力を低減
することが可能なCPUのクロック制御装置を提供する
ことにある。It is an object of the present invention to provide a CPU clock control device capable of reducing the power consumption of a CPU.
【0007】[0007]
【課題を解決するための手段】請求項1記載の発明は、
複数のタスクから処理すべきタスクを選択するスケジュ
ーラと、前記複数のタスクの各々のCPUの使用量を記
憶する記憶手段と、前記CPUの使用量に対応させてC
PUのクロック値を記憶するテーブルと、前記スケジュ
ーラで選択されたタスクに対応するCPUの使用量を前
記記憶手段から読み出す選択手段と、前記選択手段によ
り当該読み出されたCPUの使用量に対応するCPUの
クロック値を前記テーブルから読み出す比較手段と、前
記比較手段により読み出されたCPUのクロック値に基
づいてCPUのクロックを切り替えるクロック選択手段
と、を備えたことにより上記課題を解決する。According to the first aspect of the present invention,
A scheduler for selecting a task to be processed from a plurality of tasks; a storage unit for storing a CPU usage of each of the plurality of tasks; and a C corresponding to the CPU usage.
A table for storing the clock value of the PU, a selection unit for reading out the usage amount of the CPU corresponding to the task selected by the scheduler from the storage unit, and a selection unit corresponding to the usage amount of the CPU read by the selection unit. The above object is achieved by providing a comparison unit that reads a clock value of a CPU from the table, and a clock selection unit that switches a clock of the CPU based on the clock value of the CPU read by the comparison unit.
【0008】この請求項1記載の発明によれば、スケジ
ューラは、複数のタスクから処理すべきタスクを選択
し、記憶手段は、複数のタスクの各々のCPUの使用量
を記憶し、テーブルは、CPUの使用量に対応させてC
PUのクロック値を記憶し、選択手段は、スケジューラ
で選択されたタスクに対応するCPUの使用量を記憶手
段から読み出し、比較手段は、選択手段により当該読み
出されたCPUの使用量に対応するCPUのクロック値
をテーブルから読み出し、そして、クロック選択手段
は、比較手段により読み出されたCPUのクロック値に
基づいてCPUのクロックを切り替える。According to the first aspect of the present invention, the scheduler selects a task to be processed from a plurality of tasks, the storage means stores the CPU usage of each of the plurality of tasks, and the table includes C according to CPU usage
The clock value of the PU is stored, the selection unit reads the usage of the CPU corresponding to the task selected by the scheduler from the storage unit, and the comparison unit corresponds to the usage of the CPU read by the selection unit. The clock value of the CPU is read from the table, and the clock selecting means switches the clock of the CPU based on the CPU clock value read by the comparing means.
【0009】したがって、タスク毎に、CPU処理に必
要な量を記憶し、タスクスケジューラがタスクを切り換
えると同時にそのタスクに必要なクロックが選択可能な
構成であるため、常に無駄のないCPU能力で動作する
ことが可能となり、CPUにおける消費電力を低減する
ことが可能となる。Therefore, the amount required for CPU processing is stored for each task, and the clock required for the task can be selected at the same time as the task scheduler switches the task. Power consumption in the CPU can be reduced.
【0010】また、この場合、請求項2の発明の如く、
前記記憶手段に格納されているCPUの使用量を書き換
え可能としたことが有効である。[0010] In this case, as in the invention of claim 2,
It is effective that the usage amount of the CPU stored in the storage means can be rewritten.
【0011】即ち、請求項2記載の発明によれば、請求
項1記載の発明において、記憶手段に格納されているC
PUの使用量を書き換え可能とした。That is, according to the invention described in claim 2, in the invention described in claim 1, the C stored in the storage means.
The usage of PU can be rewritten.
【0012】したがって、請求項1記載の発明の効果に
加えて、細かくかつダイナミックにCPU能力を制御す
ることが可能となる。Therefore, in addition to the effect of the first aspect of the present invention, it is possible to finely and dynamically control the CPU capability.
【0013】請求項3記載の発明は、複数のタスクから
処理すべきタスクを選択するスケジューラと、前記複数
のタスクの各々のCPUの使用量を記憶する記憶手段
と、前記CPUの使用量に対応させてCPUのクロック
値を記憶するテーブルと、前記スケジューラにより選択
されたタスクのうち動作中であるタスクと、中断中のタ
スクに対応するCPUの使用量を夫々前記記憶手段から
読み出して、当該読み出したCPUの使用量を加算し
て、CPUの総使用量を算出する加算手段と、前記加算
手段により算出されたCPUの総使用量に対応するCP
Uのクロック値を前記テーブルから読み出す比較手段
と、前記比較手段により読み出されたCPUのクロック
値に基づいて、クロック値を切り替えるクロック選択手
段と、を備えたことにより上記課題を解決する。According to a third aspect of the present invention, there is provided a scheduler for selecting a task to be processed from a plurality of tasks, storage means for storing a usage of each CPU of the plurality of tasks, and A table for storing the clock value of the CPU, and among the tasks selected by the scheduler, a running task and a CPU usage corresponding to the suspended task are read out from the storage means, respectively. Adding means for calculating the total usage of the CPU by adding the usage of the CPU, and a CP corresponding to the total usage of the CPU calculated by the adding means.
The above object is achieved by providing a comparison unit that reads the clock value of U from the table, and a clock selection unit that switches the clock value based on the CPU clock value read by the comparison unit.
【0014】即ち、請求項3記載の発明によれば、スケ
ジューラは、複数のタスクから処理すべきタスクを選択
し、タスク処理手段は、スケジューラで選択されたタス
クを実行し、記憶手段は、複数のタスクの各々のCPU
の使用量を記憶し、テーブルは、CPUの使用量に対応
させてCPUのクロック値を記憶し、加算手段は、スケ
ジューラにより選択されたタスクのうち動作中であるタ
スクと、中断中のタスクに対応するCPUの使用量を夫
々前記記憶手段から読み出して、当該読み出したCPU
の使用量を加算して、CPUの総使用量を算出し、比較
手段は、加算手段により算出されたCPUの総使用量に
対応するCPUのクロック値をテーブルから読み出し、
そして、クロック選択手段は、クロック選択手段は、比
較手段により読み出されたCPUのクロック値に基づい
て、クロック値を切り替える。That is, according to the third aspect of the present invention, the scheduler selects a task to be processed from a plurality of tasks, the task processing means executes the task selected by the scheduler, and the storage means includes a plurality of tasks. CPU for each task
The table stores the CPU clock value in correspondence with the CPU usage, and the adding means determines whether the task selected by the scheduler is an active task or a suspended task. The usage amount of the corresponding CPU is read from the storage means, and the read CPU is read.
The comparison means reads the CPU clock value corresponding to the total CPU usage calculated from the addition means from the table by calculating the total usage of the CPU by adding
Then, the clock selecting means switches the clock value based on the CPU clock value read by the comparing means.
【0015】従って、現在CPUが必要とされるタスク
の量に応じたクロックを選択可能な構成であるので、適
宜最適なCPU能力で動作することになり、無駄なCP
U能力で動作することがなくなり、有効な消費電力管理
を行うことが可能となる。[0015] Therefore, since the clock can be selected according to the amount of tasks required by the CPU at present, the CPU operates appropriately with optimal CPU capacity, and the wasteful CP is used.
It does not operate with the U capability, and effective power consumption management can be performed.
【0016】[0016]
【発明の実施の形態】以下、図1〜図4を参照して本発
明の実施の形態を詳細に説明する。 (第1の実施の形態)図1は、本発明に係るCPUのク
ロック制御装置の第1の実施の形態であるコンピュータ
システムを示す図である。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to FIGS. (First Embodiment) FIG. 1 is a diagram showing a computer system which is a first embodiment of a clock control device for a CPU according to the present invention.
【0017】まず、構成を説明する。図1は、本実施の
形態のコンピュータシステム1のモジュールを示すブロ
ック図である。図1において、コンピュータシステム1
は、タスク1〜3、スケジューラ2、処理回路3、電源
制御回路4、周辺回路5、記憶装置6〜8、セレクタ
9、記憶回路10、比較器11、CPU速度対クロック
表12、及びクロック選択回路13等から構成されてい
る。First, the configuration will be described. FIG. 1 is a block diagram showing modules of the computer system 1 according to the present embodiment. In FIG. 1, a computer system 1
Are tasks 1 to 3, scheduler 2, processing circuit 3, power supply control circuit 4, peripheral circuit 5, storage devices 6 to 8, selector 9, storage circuit 10, comparator 11, CPU speed versus clock table 12, and clock selection. It is composed of a circuit 13 and the like.
【0018】ここで、スケジューラ2、タスク1〜3、
及び処理回路3は、一般的なマルチタスクスケジューリ
ングを行う装置である。マルチタスクとは、例えばパソ
コンなどのソフトを設計する場合に、タスク(機能)別
に設計を行ったほうがプログラム設計する上で容易かつ
信頼性の高いプログラムを書くことができるため、従来
より採用されている技術である。Here, scheduler 2, tasks 1 to 3,
The processing circuit 3 is a device that performs general multitask scheduling. Multi-tasking has been adopted in the past because, for example, when designing software such as a personal computer, designing by task (function) makes it easier to write a highly reliable program in program design. Technology.
【0019】本実施の形態のコンピュータシステム1
は、ダイナミック(動的)かつ適切なCPUクロックの
選択制御を行うものである。Computer system 1 of the present embodiment
Is to perform dynamic and dynamic CPU clock selection control.
【0020】タスク1〜3は、それぞれ、例えば、キー
処理、(文字)認識処理、及びユーザーインターフェー
ス処理のプログラムである。Tasks 1 to 3 are, for example, programs for key processing, (character) recognition processing, and user interface processing, respectively.
【0021】スケジューラ2は、複数のタスクを効率的
に処理すべくスケージューリングを行い、例えば、キー
処理タスクがキー待ちなどによってタスク処理が待ち状
態などの状態になったら、次のタスクは処理の権限を移
行させるなどの処理を行う。すなわち、スケジューラ2
は、複数のタスクのうち順次、一つだけを選択し、処理
回路3にて処理できるようにスケジュールを行う。The scheduler 2 performs scheduling so as to efficiently process a plurality of tasks. For example, when a key processing task enters a waiting state due to a key wait or the like, the next task is processed. Process such as transferring the authority of That is, scheduler 2
Performs a schedule so that only one of the tasks is sequentially selected and processed by the processing circuit 3.
【0022】処理回路3は、スケジューラ2により選択
されるタスクを実行する。電源制御回路4は、スケジュ
ーラ2で選択されるタスクに応じて、周辺回路5の各部
に出力する駆動電圧を制御する。The processing circuit 3 executes a task selected by the scheduler 2. The power supply control circuit 4 controls a drive voltage to be output to each part of the peripheral circuit 5 according to a task selected by the scheduler 2.
【0023】記憶装置6〜8は、それぞれ、上記タスク
1〜3で必要とするCPUの使用量(必要処理能力)を
それぞれ記憶している。ここで、CPUの使用量とは、
KIPS(1000 Instruction per second)等の一
定時間に必要な計算量を示したものである。例えば、タ
スク1のキー処理は、単純なキーの取り込みなどの処理
であるからCPUの使用量は少なく20KIPS程度で
ある。また、タスク2の認識処理は、1000KIPS
程度となる。The storage devices 6 to 8 respectively store the CPU usage (required processing capacity) required for the above tasks 1 to 3. Here, the CPU usage is
It shows the amount of calculation required for a certain time such as KIPS (1000 Instructions per second). For example, the key processing of task 1 is processing such as simple key capture, so that the CPU usage is small and about 20 KIPS. Also, the recognition process of task 2 is 1000 KIPS
About.
【0024】セレクタ9は、スケジューラ2によって選
択されるタスクに対応するCPUの使用量を記憶装置6
〜8から読み出し、記憶回路10に出力する。記憶回路
10は、セレクタ9から入力される現在選択されている
タスクに対応するCPUの使用量を一時的に格納するレ
ジスタであり、また、かかるCPUの使用量を比較器に
出力する。The selector 9 stores the CPU usage corresponding to the task selected by the scheduler 2 in the storage device 6.
8 and output to the storage circuit 10. The storage circuit 10 is a register that temporarily stores the CPU usage corresponding to the currently selected task input from the selector 9, and outputs the CPU usage to the comparator.
【0025】CPU速度対クロック表12は、CPUの
使用量と当該CPUの使用量を実行するために必要なク
ロック値とが対応づけられて格納されている。The CPU speed versus clock table 12 stores the CPU usage and the clock value required to execute the CPU usage in association with each other.
【0026】比較器11は、CPU速度対クロック表1
2が接続されており、記憶回路10から入力される現在
選択されているタスクのCPUの使用量と、CPU速度
対クロック表12の値とを順次比較して、現在選択され
ているタスクのCPUの使用量に対応するクロック値を
選択して、クロック選択回路13に出力する。The comparator 11 has a CPU speed vs. clock table 1
2 is connected, the CPU usage of the currently selected task input from the storage circuit 10 is sequentially compared with the value of the CPU speed vs. clock table 12 to determine the CPU of the currently selected task. Is selected and output to the clock selection circuit 13.
【0027】クロック選択回路13は、比較器11から
入力されるクロック値に基づいて、クロックを切り替え
る。The clock selection circuit 13 switches the clock based on the clock value input from the comparator 11.
【0028】次に、上記構成のコンピュータシステム1
の動作を説明する。Next, the computer system 1 having the above configuration will be described.
Will be described.
【0029】スケジューラ2は、タスク1〜3のうち順
次、一つだけを選択し、処理回路3は、スケジューラ2
により選択されたタスクを実行する。また、その際、セ
レクタ9は、スケジューラ2によって選択されるタスク
に対応するCPUの使用量を記憶装置6〜8から読み出
し記憶回路10に出力する。記憶回路10は、セレクタ
9から入力される現在選択されているタスクに対応する
CPUの使用量を一時的に格納し、比較器11は、現在
選択されているCPUの使用量に対応するクロック値を
CPU速度対クロック表12から選択して、クロック選
択回路13に出力する。そして、クロック選択回路13
では、比較器11から入力されるクロック値に基づい
て、クロックの切り替えが行われる。The scheduler 2 sequentially selects only one of the tasks 1 to 3, and the processing circuit 3
Executes the task selected by. At this time, the selector 9 reads the usage of the CPU corresponding to the task selected by the scheduler 2 from the storage devices 6 to 8 and outputs it to the storage circuit 10. The storage circuit 10 temporarily stores the CPU usage corresponding to the currently selected task input from the selector 9, and the comparator 11 stores the clock value corresponding to the currently selected CPU usage. Is selected from the CPU speed versus clock table 12 and output to the clock selection circuit 13. Then, the clock selection circuit 13
In the example, the clock is switched based on the clock value input from the comparator 11.
【0030】以上説明したように、本実施の形態におい
ては、タスク毎に、CPU処理に必要なCPUの使用量
を記憶装置6〜8に記憶し、また、CPUの使用量と当
該CPUの使用量に対応するクロック値をCPU速度対
クロック表12に記憶し、スケジューラ2がタスクを切
り換えると同時にそのタスクに必要なクロック値を選択
する構成であるので、常に無駄のないCPU能力で操作
することが可能となり、CPUにおける消費電力を低減
することが可能となる。As described above, in the present embodiment, the CPU usage required for the CPU processing is stored in the storage devices 6 to 8 for each task, and the CPU usage and the CPU usage are stored. The clock value corresponding to the amount is stored in the CPU speed vs. clock table 12, and the scheduler 2 switches the task and at the same time selects the clock value required for the task. And power consumption in the CPU can be reduced.
【0031】尚、タスクによっては、例えば表示等の高
速切り替えなどのように、ある瞬時だけ高速なCPU処
理が必要な場合があり、常に高速なCPU処理を必要と
しているわけではないので、必要なときだけクロックを
切り替えれば良い。この機能を実現する為に、処理回路
3により、記憶装置6〜8に記憶されているCPUの使
用量を適宜書き換え可能な構成とすれば、より細かく且
つダイナミックにCPU能力を制御することが可能とな
る。Depending on the task, high-speed CPU processing may be required only at a certain moment, for example, for high-speed switching of display or the like. This does not always require high-speed CPU processing. You only need to switch the clock when. In order to realize this function, if the configuration is such that the usage amount of the CPU stored in the storage devices 6 to 8 can be appropriately rewritten by the processing circuit 3, the CPU capability can be more finely and dynamically controlled. Becomes
【0032】(第2の実施の形態)以下、図2〜図4を
参照して第2の実施の形態を説明する。上記した第1の
実施の形態は、スケジューラによって選択され処理回路
により処理されているタスクに必要なCPUの使用量に
対応するクロックを選択する構成であるが、第2の実施
の形態は、動作中のタスクのCPU使用量と中断中のタ
スクのCPUの使用量とを加算して、現在CPUが必要
とされるCPUの総使用量に応じたクロックを選択する
構成である。(Second Embodiment) Hereinafter, a second embodiment will be described with reference to FIGS. The first embodiment has a configuration in which a clock corresponding to the amount of CPU usage required for a task selected by the scheduler and processed by the processing circuit is selected. However, the second embodiment has an operation In this configuration, the CPU usage of the middle task and the CPU usage of the suspended task are added to select a clock according to the total CPU usage required by the current CPU.
【0033】付言すると、実際のタスク処理を並列的に
処理を行う場合は、一つのタスクの処理を行っていると
きには、ほかの処理待ち状態(処理を行わなくても良
い)であるとは限らない。例えば、キー処理を行ってい
る場合であっても、適宜タッチパネルの入力は為されて
おり、認識のタスクは処理を中断された状態である。こ
のような場合には、現在キー処理を行っているからとい
ってその処理のCPU速度だけを選択するのは認識処理
の処理速度が遅くなるという問題が生じる。本実施の形
態では、かかる問題を解決すべく、上記構成とした。In addition, when the actual task processing is performed in parallel, while processing of one task is being performed, it is not always necessary to wait for another processing (processing need not be performed). Absent. For example, even when the key processing is being performed, the input on the touch panel is appropriately performed, and the recognition task is in a state where the processing is interrupted. In such a case, selecting only the CPU speed of the key processing just because the key processing is currently performed causes a problem that the processing speed of the recognition processing becomes slow. In the present embodiment, the above configuration is adopted to solve such a problem.
【0034】図2は、第2の実施の形態のコンピュータ
システムのモジュールを示すブロック図である。同図に
おいて、図1のコンピュータシステムと同等機能を有す
る部分は、同一符号を付しており、かかる部分の説明は
一部省略し、特徴的な部分を中心に説明する。FIG. 2 is a block diagram showing modules of the computer system according to the second embodiment. In the figure, parts having the same functions as those of the computer system of FIG. 1 are denoted by the same reference numerals, and the description of such parts will be partially omitted, and the description will focus on characteristic parts.
【0035】即ち、図2に示すコンピュータシステム3
0は、マルチタスク処理を行う部分(スケジューラ2、
処理回路3、タスク1〜3、)、電源制御回路4、周辺
回路5、記憶装置6〜8、比較器11、CPU速度対ク
ロック表12、及びクロック選択回路13は、図1と同
様であり、異なる部分は、記憶装置6〜8に各々導出回
路14〜16が接続され、これら導出回路14〜16に
加算器17が接続されている点である。That is, the computer system 3 shown in FIG.
0 is a part that performs multitask processing (scheduler 2,
The processing circuit 3, tasks 1 to 3,), power supply control circuit 4, peripheral circuit 5, storage devices 6 to 8, comparator 11, CPU speed versus clock table 12, and clock selection circuit 13 are the same as those in FIG. The difference is that the deriving circuits 14 to 16 are connected to the storage devices 6 to 8, respectively, and the adder 17 is connected to these deriving circuits 14 to 16.
【0036】スケジューラ2は、現在動作を必要として
いるタスクに対応するCPUの使用量を、記憶装置6〜
8から導出回路14〜16により導出させる。導出回路
14〜16はスケジューラ2の制御により上記CPUの
使用量の値を加算器17に加えるかどうかを選択を行う
装置である。尚、スケジューラ2は現在動作を必要とし
ているタスクに対してにみCPUの使用量を導出するよ
うに制御を行っている。The scheduler 2 stores the amount of CPU usage corresponding to the task requiring the current operation in the storage devices 6 to
8 by the deriving circuits 14 to 16. The derivation circuits 14 to 16 are devices for selecting whether or not to add the value of the CPU usage to the adder 17 under the control of the scheduler 2. Note that the scheduler 2 performs control so as to derive the CPU usage only for tasks that require an operation at present.
【0037】加算器17は、導出回路14〜16から入
力されるCPUの使用量を加算して比較器11に出力す
る。比較器11は、加算されたCPUの使用量に対応す
るクロック値をCPU速度対クロック表12から読み出
して、現在必要なCPUの総使用量に適したクロック値
を選択する。The adder 17 adds the CPU usage amounts input from the derivation circuits 14 to 16 and outputs the result to the comparator 11. The comparator 11 reads the clock value corresponding to the added CPU usage from the CPU speed vs. clock table 12, and selects a clock value suitable for the currently required total CPU usage.
【0038】次に、上記の如く構成されたコンピュータ
システム30の動作を図3及び図4を参照して説明す
る。図3は、タスクの取りうる状態と遷移を示す図であ
る。Next, the operation of the computer system 30 configured as described above will be described with reference to FIGS. FIG. 3 is a diagram showing possible states and transitions of a task.
【0039】図3において、動作中とは、現在タスクが
使用されている状態である。動作中タスクはキーなどの
割り込みなどのイベントを持つ場合には待機中モードに
スケジューラはそのタスクを遷移させる。待機中のタス
クは待っているイベントが起こると現在実行中のタスク
がない場合には動作中へ、また動作中のタスクがある場
合には中断中へ遷移される。また、実行タスクは、所定
時間後、中断中へ遷移される。In FIG. 3, "operating" means that the task is currently being used. If the running task has an event such as an interrupt such as a key, the scheduler shifts the task to the waiting mode. When a waiting event occurs, the waiting task is transited to the active state if there is no task currently being executed, or to the suspended state if there is a task being activated. Further, the execution task is transited to “suspended” after a predetermined time.
【0040】遷移のさせかたは、スケジューラ2が所定
時間タイマなどでカウントを行い強制的に遷移される方
法とタスクが自ら、ある程度の処理毎に待機モードは遷
移を行う方法があるが本実施例には、どちらでも問題が
ないので後者であるとする。As for the method of transition, there is a method in which the scheduler 2 counts with a timer or the like for a predetermined time and forcibly transitions, and a method in which the task itself transitions the standby mode every certain degree of processing. Is the latter because there is no problem in either case.
【0041】あるタスクが中断中に遷移が行われるとき
には、ほかの中断中であるタスクが動作モードに遷移さ
れる。図4にタスクスケジュールされる仕組みを図示し
ている。図中左にタスクがとれる状態を示している。そ
れぞれの状態にあるタスクをそれらの状態の右側に書い
ている。スケジューラ2は、上記に述べた動作をチェー
ンなどの手法を用いて実現を行う。このような方法によ
って、スケジューラ2は現在動作を行っているタスク並
びに中断中であるタスクを管理することができる。When a transition is made while a certain task is suspended, another suspended task is transitioned to the operation mode. FIG. 4 illustrates a mechanism for task scheduling. The state where tasks can be taken is shown on the left side of the figure. The tasks in each state are written to the right of those states. The scheduler 2 implements the above-described operation using a method such as a chain. In this way, the scheduler 2 can manage the task that is currently operating and the task that is being suspended.
【0042】即ち、スケジューラ2は、タスクのうち動
作中であるタスクと、中断中のタスクに該当するCPU
の使用量を記憶装置6〜8から導出回路14〜16によ
り導出させ、加算器17により導出されたCPUの使用
量は加算され、CPUの総使用量が算出され、比較器1
1により、算出されたCPUの総使用量に対応するクロ
ック値がCPU速度対クロック表12から選択され、ク
ロック選択回路13により選択されたクロック値に基づ
いて、クロックが切り替えられる。したがって、現在C
PUが必要とされるタスクの量に応じたクロックが選択
されるので、適宜最適なCPU能力で動作することにな
り、無駄なCPU能力で動作することがなくなり、有効
な消費電力管理を行うことが可能となる。That is, the scheduler 2 determines which of the tasks is in operation and the CPU corresponding to the suspended task.
Are derived from the storage devices 6 to 8 by the deriving circuits 14 to 16, the CPU usage derived by the adder 17 is added, the total CPU usage is calculated, and the comparator 1
According to 1, the clock value corresponding to the calculated total CPU usage is selected from the CPU speed versus clock table 12, and the clock is switched based on the clock value selected by the clock selection circuit 13. Therefore, C
The clock is selected according to the amount of tasks required by the PU, so that the PU operates with the optimal CPU capacity as appropriate, does not operate with useless CPU capacity, and performs effective power consumption management. Becomes possible.
【0043】[0043]
【発明の効果】請求項1記載の発明によれば、タスク毎
に、CPU処理に必要な量を記憶し、タスクスケジュー
ラがタスクを切り換えると同時にそのタスクに必要なク
ロックが選択可能な構成であるため、常に無駄のないC
PU能力で動作することが可能となり、CPUにおける
消費電力を低減することが可能となる。According to the first aspect of the present invention, the required amount of CPU processing is stored for each task, and the clock required for the task can be selected at the same time as the task scheduler switches the task. Therefore, always lean C
It is possible to operate with PU capability, and it is possible to reduce power consumption in the CPU.
【0044】また、請求項2記載の発明によれば、請求
項1記載の発明の効果に加えて、細かくかつダイナミッ
クにCPU能力を制御することが可能となる。According to the second aspect of the present invention, in addition to the effect of the first aspect of the invention, it is possible to finely and dynamically control the CPU capability.
【0045】また、請求項3記載の発明によれば、現在
CPUが必要とされるタスクの量に応じたクロックを選
択可能な構成であるので、適宜最適なCPU能力で動作
することになり、無駄なCPU能力で動作することがな
くなり、有効な消費電力管理を行うことが可能となる。According to the third aspect of the present invention, the clock can be selected according to the amount of tasks currently required by the CPU. It is not necessary to operate with useless CPU capacity, and effective power consumption management can be performed.
【図1】本発明のCPUのクロック制御装置を適用した
第1の実施の形態におけるスケジューリング装置1のブ
ロック構成を示す図。FIG. 1 is a diagram showing a block configuration of a scheduling device 1 according to a first embodiment to which a clock control device for a CPU according to the present invention is applied.
【図2】本発明のCPUのクロック制御装置を適用した
第2の実施の形態におけるスケジューリング装置1のブ
ロック構成を示す図。FIG. 2 is a diagram illustrating a block configuration of a scheduling device 1 according to a second embodiment to which a clock control device for a CPU according to the present invention is applied;
【図3】タスクの取りうる状態と遷移を示す図。FIG. 3 is a diagram showing possible states and transitions of a task.
【図4】タスムスケジュールされる仕組みを示す図。FIG. 4 is a diagram showing a mechanism for performing a task schedule.
1、30 タイムスケジューラ装置 2 スケジューラ 3 処理回路 4 電源制御回路置 5 周辺回路 6 記憶装置 7 記憶装置 8 記憶装置 9 セレクタ 10 記憶回路 11 比較器 12 CPU速度対クロック表 13 クロック選択回路 14 導出回路 15 導出回路 16 導出回路 17 加算器 1, 30 time scheduler device 2 scheduler 3 processing circuit 4 power supply control circuit unit 5 peripheral circuit 6 storage device 7 storage device 8 storage device 9 selector 10 storage circuit 11 comparator 12 CPU speed versus clock table 13 clock selection circuit 14 derivation circuit 15 Derivation circuit 16 Derivation circuit 17 Adder
Claims (3)
するスケジューラと、 前記複数のタスクの各々のCPUの使用量を記憶する記
憶手段と、 前記CPUの使用量に対応させてCPUのクロック値を
記憶するテーブルと、 前記スケジューラで選択されたタスクに対応するCPU
の使用量を前記記憶手段から読み出す選択手段と、 前記選択手段により当該読み出されたCPUの使用量に
対応するCPUのクロック値を前記テーブルから読み出
す比較手段と、 前記比較手段により読み出されたCPUのクロック値に
基づいてCPUのクロックを切り替えるクロック選択手
段と、 を備えたことを特徴とするCPUのクロック制御装置。1. A scheduler for selecting a task to be processed from a plurality of tasks, a storage unit for storing a usage amount of a CPU of each of the plurality of tasks, and a clock value of a CPU corresponding to the usage amount of the CPU And a CPU corresponding to the task selected by the scheduler
Selecting means for reading the usage of the CPU from the storage means, comparing means for reading from the table the CPU clock value corresponding to the usage of the CPU read by the selecting means, and reading by the comparing means A clock control device for a CPU, comprising: clock selection means for switching a clock of the CPU based on a clock value of the CPU.
用量を書き換え可能としたことを特徴とする請求項1記
載のCPUのクロック制御装置。2. The CPU clock control device according to claim 1, wherein the CPU usage stored in said storage means is rewritable.
するスケジューラと、 前記複数のタスクの各々のCPUの使用量を記憶する記
憶手段と、 前記CPUの使用量に対応させてCPUのクロック値を
記憶するテーブルと、 前記スケジューラにより選択されたタスクのうち動作中
であるタスクと、中断中のタスクに対応するCPUの使
用量を夫々前記記憶手段から読み出して、当該読み出し
たCPUの使用量を加算して、CPUの総使用量を算出
する加算手段と、 前記加算手段により算出されたCPUの総使用量に対応
するCPUのクロック値を前記テーブルから読み出す比
較手段と、 前記比較手段により読み出されたCPUのクロック値に
基づいて、クロック値を切り替えるクロック選択手段
と、 を備えたことを特徴とするCPUのクロック制御装置。3. A scheduler for selecting a task to be processed from a plurality of tasks, storage means for storing a CPU usage of each of the plurality of tasks, and a CPU clock value corresponding to the CPU usage A table that stores the CPU usage corresponding to the running task and the suspended task among the tasks selected by the scheduler from the storage unit, and reads the usage of the read CPU. Adding means for calculating the total usage amount of the CPU by adding them; comparison means for reading from the table the CPU clock value corresponding to the total usage amount of the CPU calculated by the addition means; reading by the comparison means And clock selection means for switching the clock value based on the selected clock value of the CPU. Click control device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8298923A JPH10143274A (en) | 1996-11-11 | 1996-11-11 | CPU clock control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8298923A JPH10143274A (en) | 1996-11-11 | 1996-11-11 | CPU clock control device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH10143274A true JPH10143274A (en) | 1998-05-29 |
Family
ID=17865941
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP8298923A Pending JPH10143274A (en) | 1996-11-11 | 1996-11-11 | CPU clock control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH10143274A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2000077599A1 (en) * | 1999-06-16 | 2000-12-21 | Sony Corporation | Information processing system, information processing method, method and apparatus for task assignment, and medium storing program |
WO2002050645A1 (en) * | 2000-12-20 | 2002-06-27 | Hitachi, Ltd. | Electronic circuit of low power consumption, and power consumption reducing method |
US7131016B2 (en) * | 2000-05-15 | 2006-10-31 | Microconnect Llc | Method and apparatus for adjusting clock throttle rate based on usage of CPU |
JP2008059054A (en) * | 2006-08-29 | 2008-03-13 | Matsushita Electric Ind Co Ltd | Processor system |
US7386853B2 (en) | 2001-07-12 | 2008-06-10 | Denso Corporation | Multitasking operating system capable of reducing power consumption and vehicle electronic control unit using same |
US7412354B2 (en) | 2000-08-28 | 2008-08-12 | Protimus Technologies Llc | Method for measuring quantity of usage of CPU |
JP2011096250A (en) * | 2009-11-02 | 2011-05-12 | Internatl Business Mach Corp <Ibm> | Method, system and computer-readable medium for comparing utility and warranty of services |
-
1996
- 1996-11-11 JP JP8298923A patent/JPH10143274A/en active Pending
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6834354B1 (en) | 1999-06-16 | 2004-12-21 | Sony Corporation | Method and apparatus for assigning tasks in an information processing system to optimize power consumption versus performance of the system |
WO2000077599A1 (en) * | 1999-06-16 | 2000-12-21 | Sony Corporation | Information processing system, information processing method, method and apparatus for task assignment, and medium storing program |
US9058170B2 (en) | 2000-05-15 | 2015-06-16 | Lg Electronics Inc. | Method and apparatus for adjusting a performance state of a processor resource |
US7702937B2 (en) | 2000-05-15 | 2010-04-20 | Anpa Inc. | Method and apparatus for operating a computer system by adjusting a performance state of a processor resource |
US7131016B2 (en) * | 2000-05-15 | 2006-10-31 | Microconnect Llc | Method and apparatus for adjusting clock throttle rate based on usage of CPU |
US7813897B2 (en) | 2000-08-28 | 2010-10-12 | Anpa, Inc. | Method for measuring quantity of usage of CPU |
US7412354B2 (en) | 2000-08-28 | 2008-08-12 | Protimus Technologies Llc | Method for measuring quantity of usage of CPU |
US7519511B2 (en) | 2000-08-28 | 2009-04-14 | Anpa, Inc. | Method for measuring quantity of usage of CPU |
WO2002050645A1 (en) * | 2000-12-20 | 2002-06-27 | Hitachi, Ltd. | Electronic circuit of low power consumption, and power consumption reducing method |
US7386853B2 (en) | 2001-07-12 | 2008-06-10 | Denso Corporation | Multitasking operating system capable of reducing power consumption and vehicle electronic control unit using same |
JP2008059054A (en) * | 2006-08-29 | 2008-03-13 | Matsushita Electric Ind Co Ltd | Processor system |
US7840823B2 (en) | 2006-08-29 | 2010-11-23 | Panasonic Corporation | Processor system for varying clock frequency and voltage in response to a comparison of instruction execution rate to a reference value |
JP2011096250A (en) * | 2009-11-02 | 2011-05-12 | Internatl Business Mach Corp <Ibm> | Method, system and computer-readable medium for comparing utility and warranty of services |
US9483746B2 (en) | 2009-11-02 | 2016-11-01 | International Business Machines Corporation | Comparing utility and warranty of services |
US10380525B2 (en) | 2009-11-02 | 2019-08-13 | International Business Machines Corporation | Comparing utility and warranty of services |
US10713606B2 (en) | 2009-11-02 | 2020-07-14 | International Business Machines Corporation | Comparing utility and warranty of services |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100193920B1 (en) | Multiprocessor computer | |
US6240521B1 (en) | Sleep mode transition between processors sharing an instruction set and an address space | |
EP0669016B1 (en) | Method of autonomously reducing power consumption in a computer system | |
US7810096B2 (en) | Computer executing multiple operating systems | |
JP5469940B2 (en) | Computer system, virtual machine monitor, and virtual machine monitor scheduling method | |
KR100864964B1 (en) | Operation processing system, operation processing control method, work management system, work management method and storage medium | |
US6230279B1 (en) | System and method for dynamically controlling processing speed of a computer in response to user commands | |
US6298448B1 (en) | Apparatus and method for automatic CPU speed control based on application-specific criteria | |
US5630148A (en) | Dynamic processor performance and power management in a computer system | |
JP3776449B2 (en) | Multitasking low power controller | |
US5515539A (en) | Apparatus and method for reducing power consumption by peripheral devices after downloading a program therefrom | |
JP2002215597A (en) | Multiprocessor device | |
WO2008023426A1 (en) | Task processing device | |
JPH04333119A (en) | information processing equipment | |
JPH096465A (en) | Information processor and its control method | |
EP1510908B1 (en) | Processor resource power management | |
WO2008023427A1 (en) | Task processing device | |
JP2000047872A (en) | Microprocessor with low power consumption operation function | |
US7412590B2 (en) | Information processing apparatus and context switching method | |
JP2001043098A (en) | Operating system and virtual computer system | |
JPH0876874A (en) | Clock control device and clock control method for central processing unit | |
JPH10143274A (en) | CPU clock control device | |
JPH0476716A (en) | Electronic apparatus | |
JP2000075966A (en) | Information processor | |
JP2000105708A (en) | Task management method and multitask OS |