JP2006072991A - Power-saving processing unit, power-saving processing method and power-saving processing program - Google Patents

Power-saving processing unit, power-saving processing method and power-saving processing program Download PDF

Info

Publication number
JP2006072991A
JP2006072991A JP2005225247A JP2005225247A JP2006072991A JP 2006072991 A JP2006072991 A JP 2006072991A JP 2005225247 A JP2005225247 A JP 2005225247A JP 2005225247 A JP2005225247 A JP 2005225247A JP 2006072991 A JP2006072991 A JP 2006072991A
Authority
JP
Japan
Prior art keywords
mode
time
power saving
power consumption
switching
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.)
Granted
Application number
JP2005225247A
Other languages
Japanese (ja)
Other versions
JP4749793B2 (en
JP2006072991A5 (en
Inventor
Kazutomi Kato
一臣 加藤
Tetsushi Yamamoto
哲士 山本
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2005225247A priority Critical patent/JP4749793B2/en
Publication of JP2006072991A publication Critical patent/JP2006072991A/en
Publication of JP2006072991A5 publication Critical patent/JP2006072991A5/ja
Application granted granted Critical
Publication of JP4749793B2 publication Critical patent/JP4749793B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To realize proper mode switching by taking into account power consumption as well in a shift processing and a return processing for switching an operation mode. <P>SOLUTION: In a power consumption information table 170, there are recorded the power consumption (mJ) which is required for a processing for shifting into a power-saving mode, consumed power (mW) when an operation is executed in the power-saving mode and the power consumption (mJ) which is required for a processing for returning to an ordinary mode. A time prediction section 102 refers to a timer list management queue 201 and predicts a period of time until the power-saving mode is removed. On the basis of the power consumption information table 170 and the predicted time, a mode switching decision section 103 compares the power consumption (mJ) between the case that switching is performed into the power saving mode and the case that switching is not performed, and only if the former is far less than the latter, decides that switching should be executed into the power-saving mode. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、省電力処理技術に関し、特に、省電力効果を高めるための改良に関するものである。   The present invention relates to a power saving processing technique, and more particularly to an improvement for enhancing a power saving effect.

電気機器の電力消費を抑える技術として、電気機器を構成しているCPUやメモリや各デバイスなどに供給されるクロックの周波数を下げたり、或いはこれらに供給される電圧を下げたりすることによって電力消費を抑える技術が知られている。また、これらに供給する電力を抑えて、或いは電力の供給を停止することによって、電力消費を抑える技術も知られている。これらの電力消費を抑える処理を実施するのは、対象とする装置要素(CPUやメモリや各デバイスなど)が現在使用されていない場合や、使用中であっても少ない電力で動作可能である場合(例えば、CPUで処理されているプログラムがアイドル状態になった場合)である。更に、周辺デバイスの電力制御も含めた複数の省電力モードを設定した上で、実行アプリケーションと周辺デバイスの使用状況を監視して、その使用状況に応じて取りうる省電力モードを選択して、適切な電力消費に抑える技術が知られている(例えば、特許文献1参照)。
特開平11−73255号公報
As a technology to reduce the power consumption of electrical equipment, power consumption is reduced by lowering the frequency of the clock supplied to the CPU, memory, or each device constituting the electrical equipment, or by lowering the voltage supplied to them. Technology to suppress this is known. There is also known a technique for suppressing power consumption by suppressing power supplied to them or by stopping power supply. These power consumption reduction processes are implemented when the target device elements (CPU, memory, devices, etc.) are not currently used, or when they can be operated with low power even when they are in use. (For example, when a program being processed by the CPU is in an idle state). In addition, after setting multiple power saving modes including power control of peripheral devices, monitor the usage status of the execution application and peripheral devices, select the power saving mode that can be taken according to the usage status, A technique for suppressing appropriate power consumption is known (see, for example, Patent Document 1).
Japanese Patent Laid-Open No. 11-73255

しかしながら、クロック周波数を下げたり、電圧を下げたり、或いは電力の供給を停止したりするためには、対象となる装置要素の仕様に基づいて既定の処理を行わなければならない。また、電力の供給を停止する際に、動作を安定させるために一定の期間を必要とする場合もある。つまり、電力消費を抑えるためには既定の処理が必要になり、そのための処理による電力消費が発生する。その電力消費量は、省電力のための処理を施す装置要素に依存するが、多数の装置に対して省電力のための処理を行う場合、少数の装置要素に対して省電力のための処理を行う場合と比較して、より多くの電力消費を伴う。しかし一方、省電力モードで動作する期間の電力消費量は、多数の装置要素に省電力のための処理を行った方が、一般的に小さくなるという関係がある。   However, in order to lower the clock frequency, lower the voltage, or stop the power supply, a predetermined process must be performed based on the specifications of the target device element. In addition, when power supply is stopped, a certain period may be required to stabilize the operation. That is, in order to suppress power consumption, a predetermined process is required, and power consumption due to this process occurs. The power consumption depends on the device element that performs processing for power saving. However, when processing for power saving is performed on a large number of devices, the processing for power saving is performed on a small number of device elements. Compared with the case of performing more power consumption. However, there is a relationship that the power consumption during the period of operation in the power saving mode is generally smaller when a power saving process is performed on a large number of device elements.

前記従来の技術では、上述したような各装置要素に対する省電力のための処理に要する電力消費量が考慮されていなかった。その結果、従来技術は、電力消費量を抑えるために省電力モードに切り替えたにもかかわらず、逆に電力消費量を増加させてしまったり、或いは電力消費量がほとんど変わらないにも関わらず処理量を増やすことにより、機器の性能の悪化、例えば応答の遅延を招いたりする場合があるという課題を有していた。   In the conventional technique, the power consumption required for the power saving process for each device element as described above is not considered. As a result, the conventional technology, despite switching to the power saving mode in order to reduce the power consumption, conversely increases the power consumption, or the processing is almost unchanged. Increasing the amount has a problem that the performance of the device may be deteriorated, for example, a response delay may be caused.

例を挙げると、電気機器が自身の動作モードを省電力モードに切り替えている最中に、通常モードで動作することを要求されたために、直ちに通常モードに復帰させる場合があった。更に、電気機器が、省電力モードへ移行した後に短時間で通常モードに復帰したために、省電力モードで動作した時間が十分長くはなく、それにより省電力のための処理が大きな割合を占める場合があった。このような場合には、省電力モードに切り替えることが、逆に電力消費量を増大させる結果となっていた。   For example, there is a case where the electric device is immediately returned to the normal mode because it is requested to operate in the normal mode while switching its own operation mode to the power saving mode. Furthermore, when the electrical equipment has returned to the normal mode in a short time after shifting to the power saving mode, the operation time in the power saving mode is not sufficiently long, and the processing for power saving accounts for a large percentage. was there. In such a case, switching to the power saving mode results in an increase in power consumption.

本発明は、上記の問題点に鑑みてなされたもので、動作モードを切り替えるための移行処理及び復帰処理に伴う電力消費量をも考慮した適切なモード切替えを実現する省電力処理装置、省電力処理方法、及び省電力処理プログラムを提供することを目的とする。   The present invention has been made in view of the above-described problems, and a power saving processing apparatus and power saving for realizing appropriate mode switching that also considers power consumption associated with transition processing and return processing for switching operation modes. It is an object to provide a processing method and a power saving processing program.

上記課題を解決し上記目的を達成するために、本発明のうち第1の態様に係るものは、対象装置の動作モードを通常モード及び1以上の省電力モードを含む複数モードの間で切り替える省電力処理装置であって、前記動作モードの切替え処理に関する情報を管理する電力消費情報管理部と、前記複数モードのうちの現在のモードから別のモードへの切替え要求が発生した際に、当該切替え要求に応じた場合に、前記別のモードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を予測する時間予測部と、前記電力消費情報管理部が管理する前記情報である管理情報と前記時間予測部が予測した前記時間である予測時間とに基づいて、前記別のモードが継続する期間を算出し、算出した値を用いて、前記動作モードを前記現在のモードから前記別のモードへ切替えるか否かの判定を行うモード切替判定部と、前記モード切替判定部の判定に従って、前記対象装置の前記動作モードを切替えるモード切替実行部と、を備えている。   In order to solve the above-described problems and achieve the above-described object, the first aspect of the present invention is to save the operation mode of the target device between a normal mode and a plurality of modes including one or more power-saving modes. A power consumption information management unit that manages information related to the switching process of the operation mode, and a switching request when a switching request from the current mode of the plurality of modes to another mode occurs. A time prediction unit that predicts a time until the other mode is canceled or a time until the current mode is restored when the request is satisfied, and the information managed by the power consumption information management unit. Based on the management information and the predicted time that is the time predicted by the time prediction unit, a period during which the other mode continues is calculated, and the calculated value is used to set the operation mode to the current mode. A mode switching determining unit for determining from the mode of whether to switch to the different modes, according to the determination of the mode switching determining unit, and a, a mode switching execution unit for switching the operation mode of the target device.

そして、前記管理情報は、前記現在のモードから前記別の各モードへの移行処理に要する処理時間と、前記別の各モードから前記現在のモードへの復帰処理に要する処理時間と、のうち前記各モードについての前記予測時間により、前記別の各モードが継続する期間を導出し得る情報を含んでいるものである。   The management information includes the processing time required for the transition processing from the current mode to each of the other modes, and the processing time required for the return processing from each of the other modes to the current mode. According to the predicted time for each mode, information that can derive a period in which each of the other modes continues is included.

この構成によれば、現在のモードから別のモードへの切替え要求が発生すると、管理情報と予測時間とに基づいて、要求のあった別のモードへの切替えを行うか否かが判定される。判定においては、管理情報と予測情報とから導出される、移行先のモードが継続する期間が用いられる。例えば、移行先のモードが継続する期間が、何らかの基準に満たない場合などに、動作モードの切替えを行わない旨の判定が行われる。それにより、移行処理或いは復帰処理に伴う電力消費量による不利益の方が無視できない場合に、切替えを差し控えることができる。このように、この構成によれば、動作モードを切り替えるための移行処理及び復帰処理に伴う電力消費量をも考慮した適切なモード切替えが実現する。   According to this configuration, when a request for switching from the current mode to another mode occurs, it is determined whether or not to switch to the requested other mode based on the management information and the predicted time. . In the determination, a time period derived from the management information and the prediction information and continuing the transition destination mode is used. For example, it is determined that the operation mode is not switched when the period during which the transition destination mode continues does not meet some criteria. Thereby, when the disadvantage by the power consumption accompanying a transfer process or a return process cannot be disregarded, switching can be withheld. As described above, according to this configuration, it is possible to realize appropriate mode switching in consideration of the power consumption associated with the transition process and the return process for switching the operation mode.

なお、「情報を管理する」とは、当該情報を確保、或いは保持し、変更の必要がある場合には変更をするなど、目的に沿った使用が可能な状態に当該情報を維持することを意味する。   “Management of information” means to maintain the information in a state where it can be used in accordance with the purpose, such as securing or holding the information, and changing the information if necessary. means.

本発明のうち第2の態様に係るものは、第1の態様に係る省電力処理装置であって、前記1以上の省電力モードが2以上の省電力モードであるものである。   According to a second aspect of the present invention, there is provided a power saving processing apparatus according to the first aspect, wherein the one or more power saving modes are two or more power saving modes.

この構成によれば、1以上の省電力モードが2以上の省電力モードであるので、通常モード及び2以上の省電力モードの間での動作モードの切替えが可能となる。   According to this configuration, since the one or more power saving modes are two or more power saving modes, the operation mode can be switched between the normal mode and the two or more power saving modes.

本発明のうち第3の態様に係るものは、対象装置の動作モードを通常モード及び2以上の省電力モードを含む複数モードの間で切り替える省電力処理装置であって、前記動作モードの切替え処理に関する情報を管理する電力消費情報管理部と、前記複数モードのうちの現在のモードから他の2以上のモードを含む特定範囲のモードへの切替え要求が発生した際に、当該切替え要求に応じた場合に、前記特定範囲内の各モードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を、前記特定範囲内のモード毎に予測する時間予測部と、前記電力消費情報管理部が管理する前記情報である管理情報と前記時間予測部が予測した前記モード毎の前記時間である予測時間とに基づいて、前記特定範囲内の各モードが継続する期間を算出し、算出した値を用いて、前記特定範囲内の各モードのうちから現在のモードの切り替え先を判定するモード切替判定部と、前記モード切替判定部の判定に従って、前記対象装置の前記動作モードを切替えるモード切替実行部と、を備えている。   According to a third aspect of the present invention, there is provided a power saving processing device for switching an operation mode of a target device between a normal mode and a plurality of modes including two or more power saving modes, wherein the operation mode switching process is performed. When a request for switching from a current mode of the plurality of modes to a mode within a specific range including two or more other modes is generated, the power consumption information management unit that manages information related to A time prediction unit that predicts, for each mode in the specific range, a time until each mode in the specific range is released or a time until the current mode is restored, and the power consumption information management Based on the management information that is the information managed by the unit and the predicted time that is the time for each mode predicted by the time prediction unit, the period in which each mode within the specific range continues is calculated. And using the calculated value, a mode switching determination unit that determines a switching destination of the current mode from among the modes within the specific range, and the operation mode of the target device according to the determination of the mode switching determination unit And a mode switching execution unit for switching between.

そして、前記管理情報は、前記現在のモードから別の各モードへの移行処理に要する処理時間と、前記別の各モードから前記現在のモードへの復帰処理に要する処理時間と、のうち前記各モードについての前記予測時間により、前記別の各モードが継続する期間を導出し得る情報を含んでいるものである。   The management information includes the processing time required for the transition process from the current mode to another mode and the processing time required for the return process from the different mode to the current mode. According to the predicted time for a mode, information that can derive a period during which each of the other modes continues is included.

この構成によれば、例えば2以上の省電力モード等の特定範囲内のモードへの切替え要求が発生すると、管理情報と予測時間とに基づいて、特定範囲内の何れのモードへ切り替えるかが判定される。判定においては、管理情報と予測情報とから導出される、移行先の各モードが継続する期間が用いられる。例えば、移行先の各モードが継続する期間が最も長いものが、切替え先として判定される。それにより、電力消費量の節減効果が最も高く、移行処理及び復帰処理に伴う電力消費量による不利益が最も小さくなるように、動作モードの移行先が設定される。このように、この構成によれば、動作モードを切り替えるための移行処理及び復帰処理に伴う電力消費量をも考慮した適切なモード切替えが実現する。   According to this configuration, for example, when a request for switching to a mode within a specific range such as two or more power saving modes is generated, it is determined which mode within the specific range is to be switched based on the management information and the predicted time. Is done. In the determination, a period in which each mode of the transition destination is derived from the management information and the prediction information is used. For example, the longest period in which each mode of the transition destination continues is determined as the switching destination. Accordingly, the operation mode transition destination is set so that the power consumption saving effect is the highest and the disadvantage due to the power consumption associated with the transition process and the return process is minimized. As described above, according to this configuration, it is possible to realize appropriate mode switching in consideration of the power consumption associated with the transition process and the return process for switching the operation mode.

なお、特定範囲は、現在のモードを除いて、全ての省電力モードの範囲であったり、その一部であったり、或いは、通常モードを含めた範囲であるなど、様々な範囲であり得る。また、特定範囲は、現在のモード以外の全てのモードの範囲、すなわち特定しない範囲をも含む。   Note that the specific range may be various ranges such as a range of all power saving modes except the current mode, a part thereof, or a range including the normal mode. Further, the specific range includes ranges of all modes other than the current mode, that is, ranges not specified.

本発明のうち第4の態様に係るものは、対象装置の動作モードを通常モード及び2以上の省電力モードを含む複数モードの間で切り替える省電力処理装置であって、前記動作モードの切替え処理に関する情報を管理する電力消費情報管理部と、前記複数モードのうちの現在のモードから他の2以上のモードを含む特定範囲のモードへの切替え要求が発生した際に、当該切替え要求に応じた場合に、前記特定範囲内の各モードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を、前記特定範囲内のモード毎に予測する時間予測部と、前記電力消費情報管理部が管理する前記情報である管理情報と前記時間予測部が予測した前記モード毎の前記時間である予測時間とに基づいて、前記特定範囲内の各モードが継続する期間を算出し、算出した値を用いて、前記動作モードを前記現在のモードから前記特定範囲内の何れのモードへ切り替えるか、又は何れにも切り替えないか、を判定するモード切替判定部と、前記モード切替判定部の判定に従って、前記対象装置の前記動作モードを切替えるモード切替実行部と、を備えている。   According to a fourth aspect of the present invention, there is provided a power saving processing apparatus for switching an operation mode of a target apparatus between a normal mode and a plurality of modes including two or more power saving modes, wherein the operation mode switching process is performed. When a request for switching from a current mode of the plurality of modes to a mode within a specific range including two or more other modes is generated, the power consumption information management unit that manages information related to A time prediction unit that predicts, for each mode in the specific range, a time until each mode in the specific range is released or a time until the current mode is restored, and the power consumption information management Based on the management information that is the information managed by the unit and the predicted time that is the time for each mode predicted by the time prediction unit, the period in which each mode within the specific range continues is calculated. And using the calculated value, a mode switching determination unit that determines whether to switch the operation mode from the current mode to any mode within the specific range, or not to switch to any mode, and the mode switching A mode switching execution unit that switches the operation mode of the target device according to the determination of the determination unit.

そして、前記管理情報は、前記現在のモードから別の各モードへの移行処理に要する処理時間と、前記別の各モードから前記現在のモードへの復帰処理に要する処理時間と、のうち前記各モードについての前記予測時間により、前記別の各モードが継続する期間を導出し得る情報を含んでいるものである。   The management information includes the processing time required for the transition process from the current mode to another mode and the processing time required for the return process from the different mode to the current mode. According to the predicted time for a mode, information that can derive a period during which each of the other modes continues is included.

この構成によれば、例えば2以上の省電力モード等の特定範囲内のモードへの切替え要求が発生すると、管理情報と予測時間とに基づいて、特定範囲内の何れのモードへ切り替えるか、或いは何れのモードへも切り替えないかが判定される。判定においては、管理情報と予測情報とから導出される、移行先の各モードが継続する期間が用いられる。例えば、移行先の各モードが継続する期間が最も長いものが、移行先の候補として判定される。更に、例えば、当該候補としての移行先のモードが継続する期間が、何らかの基準に満たない場合などに、動作モードの切替えを行わない旨の判定が行われる。それにより、電力消費量の十分な節減効果が最も高く、移行処理及び復帰処理に伴う電力消費量による不利益が最も小さくなるように、動作モードの移行先が設定され、且つ、如何なる移行先のモードについても、動作モードの切替えによる不利益が無視できない場合には、切替えを差し控えることができる。このように、この構成によれば、動作モードを切り替えるための移行処理及び復帰処理に伴う電力消費量をも考慮した適切なモード切替えが実現する。なお、特定範囲については、既述の通りである。   According to this configuration, for example, when a request for switching to a mode within a specific range such as two or more power saving modes is generated, the mode is switched to any mode within the specific range based on the management information and the predicted time, or It is determined whether to switch to any mode. In the determination, a period in which each mode of the transition destination is derived from the management information and the prediction information is used. For example, the longest period during which each mode of the transfer destination continues is determined as a transfer destination candidate. Furthermore, for example, when the period during which the transition destination mode as the candidate continues does not meet some criteria, it is determined that the operation mode is not switched. As a result, the transition destination of the operation mode is set so that the effect of sufficiently saving the power consumption is the highest, and the disadvantage due to the power consumption associated with the transition process and the return process is minimized, and any transition destination Regarding the mode, when the disadvantage caused by the switching of the operation mode cannot be ignored, the switching can be withheld. As described above, according to this configuration, it is possible to realize appropriate mode switching in consideration of the power consumption associated with the transition process and the return process for switching the operation mode. The specific range is as described above.

本発明のうち第5の態様に係るものは、第1ないし第4の何れかの態様に係る省電力処理装置であって、前記切替え要求は、前記現在のモードとして前記通常モードであるときの切替要求を含むものである。   According to a fifth aspect of the present invention, there is provided a power saving processing device according to any one of the first to fourth aspects, wherein the switching request is the normal mode as the current mode. It includes a switching request.

この構成によれば、切替え要求が、現在のモードとして通常モードであるときの切替要求を含むので、通常モードからの切替え要求があった場合に、動作モードを切り替えるための移行処理及び復帰処理に伴う電力消費量をも考慮した適切なモード切替えが実現する。   According to this configuration, since the switching request includes a switching request when the current mode is the normal mode, when there is a switching request from the normal mode, the transition process and the return process for switching the operation mode are performed. Appropriate mode switching in consideration of the accompanying power consumption is realized.

本発明のうち第6の態様に係るものは、第2ないし第4の何れかの態様に係る省電力処理装置であって、前記切替え要求は、前記現在のモードとして前記通常モードであるときの切替要求と、前記現在のモードが前記2以上の省電力モードのうちの一つであるときの切替要求と、を含むものである。   According to a sixth aspect of the present invention, there is provided a power saving processing device according to any one of the second to fourth aspects, wherein the switching request is the normal mode as the current mode. A switching request, and a switching request when the current mode is one of the two or more power saving modes.

この構成によれば、切替え要求が、現在のモードとして通常モードであるときの切替要求と、一つの省電力モードであるときの切替え要求とを含むので、通常モードからの切替え要求があった場合、及びある省電力モードからの切替え要求があった場合に、動作モードを切り替えるための移行処理及び復帰処理に伴う電力消費量をも考慮した適切なモード切替えが実現する。   According to this configuration, since the switching request includes the switching request when the current mode is the normal mode and the switching request when the current mode is one power saving mode, there is a switching request from the normal mode. In addition, when there is a switching request from a certain power saving mode, appropriate mode switching is realized in consideration of the power consumption associated with the transition process and the return process for switching the operation mode.

本発明のうち第7の態様に係るものは、第1ないし第6の何れかの態様に係る省電力処理装置であって、前記モード切替判定部は、前記別のモードが継続する期間の長さを評価することにより、前記判定を行うものである。   According to a seventh aspect of the present invention, there is provided a power saving processing device according to any one of the first to sixth aspects, wherein the mode switching determination unit is configured to extend a period during which the other mode continues. The determination is performed by evaluating the thickness.

この構成によれば、移行先としてのモード、或いは移行先の候補としてのモードについて、当該モードが継続する期間の長さを評価することによってモード切替判定部の判定が行われる。例えば、モード切替判定部は、上記期間の長さが正数である場合に限り動作モードの切替えを行うものと判定したり、上記期間の長さが最も長い動作モードを、移行先として選択したりする。このため、簡単な処理により判定結果が得られる。   According to this configuration, the mode switching determination unit determines the mode as the transition destination or the mode as the transition destination candidate by evaluating the length of the period in which the mode continues. For example, the mode switching determination unit determines that the operation mode is switched only when the length of the period is a positive number, or selects the operation mode with the longest period as the transition destination. Or For this reason, a determination result is obtained by simple processing.

本発明のうち第8の態様に係るものは、第1ないし第6の何れかの態様に係る省電力処理装置であって、前記モード切替判定部は、前記別のモードへの前記移行処理に要する電力消費量と前記別のモードが継続する期間に要する電力消費量と前記現在のモードへの復帰処理に要する電力消費量との和としての電力消費量を評価することにより、前記判定を行うものであり、前記管理情報は、前記別の各モードにおける前記対象装置の消費電力と、前記現在のモードから前記別の各モードへの移行処理に要する前記対象装置の電力消費量と、前記現在のモードから前記別の各モードへの移行処理に要する前記対象装置の消費電力と、前記現在のモードから前記別の各モードへの移行処理に要する処理時間と、前記別の各モードから前記現在のモードへの復帰処理に要する前記対象装置の電力消費量と、前記別の各モードから前記現在のモードへの復帰処理に要する前記対象装置の消費電力と、前記別の各モードから前記現在のモードへの復帰処理に要する処理時間とのうち、前記各モードについての前記予測時間に基づいて、前記モード切替判定部が評価の対象とする電力消費量を導出し得る情報を含んでいるものである。   According to an eighth aspect of the present invention, there is provided a power saving processing device according to any one of the first to sixth aspects, wherein the mode switching determination unit performs the transition process to the different mode. The determination is made by evaluating the power consumption as the sum of the power consumption required, the power consumption required for the period during which the other mode continues, and the power consumption required for the return processing to the current mode. The management information includes the power consumption of the target device in each of the other modes, the power consumption of the target device required for the transition process from the current mode to each of the other modes, and the current Power consumption of the target device required for the process of transition from one mode to the other mode, the processing time required for the transition process from the current mode to the other mode, and the current mode from the other mode No Power consumption of the target device required for return processing to the current mode, power consumption of the target device required for return processing from the different modes to the current mode, and current mode from the different modes. Among the processing time required for the return processing to the mode, the mode switching determination unit includes information that can derive the power consumption to be evaluated based on the predicted time for each mode. .

この構成によれば、移行処理及び復帰処理に伴う電力消費量をも考慮した、動作モードの切替えを行うことによる電力消費量を評価することにより、判定が行われる。例えば、当該電力消費量の最も低い動作モードが、移行先として選択されたり、当該電力消費量が現在の動作モードにおける電力消費量よりも低い場合に限り、モード変更を行うなどの判定が行われる。それにより、移行処理及び復帰処理に伴う電力消費量を直接に考慮した、より一層精度の高い判定が得られる。その結果、一層適切なモード切替が実現する。   According to this configuration, the determination is performed by evaluating the power consumption by switching the operation mode in consideration of the power consumption accompanying the transition process and the return process. For example, only when the operation mode with the lowest power consumption is selected as the transition destination or when the power consumption is lower than the power consumption in the current operation mode, a determination is made to change the mode. . Thereby, it is possible to obtain a more accurate determination that directly takes into account the power consumption associated with the transition process and the return process. As a result, more appropriate mode switching is realized.

別のモードが継続する期間に要する電力消費量を算出するに当たっては、管理情報に含まれる別のモードにおける対象装置の消費電力に、当該別のモードが継続する期間を乗じることによって、当該期間における電力消費量を算出することが必要となる。すなわち、本構成においては、モード切替判定部は、別のモードが継続する期間を算出し、算出した値を、当該期間における電力消費量の算出に用いる。なお、消費電力と電力消費量との関係については、単位時間当たりの電力消費量が消費電力に該当する。すなわち、電力消費量とは消費電力の時間積分量に該当する。   In calculating the power consumption required for the period in which another mode continues, the power consumption of the target device in another mode included in the management information is multiplied by the period in which the other mode continues, thereby It is necessary to calculate the power consumption. That is, in this configuration, the mode switching determination unit calculates a period during which another mode continues, and uses the calculated value for calculation of power consumption during the period. As for the relationship between the power consumption and the power consumption, the power consumption per unit time corresponds to the power consumption. That is, the power consumption corresponds to the time integration amount of power consumption.

本発明のうち第9の態様に係るものは、第1又は第2の態様に係る省電力処理装置であって、前記モード切替判定部は、前記別のモードへの前記移行処理に要する電力消費量と前記別のモードが継続する期間に要する電力消費量と前記現在のモードへの復帰処理に要する電力消費量との和としての電力消費量と、同一期間における前記現在のモードの電力消費量とを比較することにより、前記判定を行うものであり、前記管理情報は、前記現在のモードにおける前記対象装置の消費電力と、前記別の各モードにおける前記対象装置の消費電力と、前記現在のモードから前記別の各モードへの移行処理に要する前記対象装置の電力消費量と、前記現在のモードから前記別の各モードへの移行処理に要する前記対象装置の消費電力と、前記現在のモードから前記別の各モードへの移行処理に要する処理時間と、前記別の各モードから前記現在のモードへの復帰処理に要する前記対象装置の電力消費量と、前記別の各モードから前記現在のモードへの復帰処理に要する前記対象装置の消費電力と、前記別の各モードから前記現在のモードへの復帰処理に要する処理時間とのうち、前記各モードについての前記予測時間に基づいて、前記モード切替判定部が比較の対象とする電力消費量を導出し得る情報を含んでいるものである。   According to a ninth aspect of the present invention, there is provided a power saving processing device according to the first or second aspect, wherein the mode switching determination unit consumes power required for the transition process to the different mode. Power consumption as the sum of the power consumption required for the period during which the other mode continues and the power consumption required for the return processing to the current mode, and the power consumption of the current mode during the same period The management information includes the power consumption of the target device in the current mode, the power consumption of the target device in each of the other modes, and the current Power consumption of the target device required for the transition processing from each mode to the other mode, power consumption of the target device required for the transition processing from the current mode to each other mode, and the current A processing time required for a transition process from a mode to each of the other modes, a power consumption of the target device required for a return process from the other modes to the current mode, and Based on the predicted time for each mode among the power consumption of the target device required for the return process to the current mode and the processing time required for the return process from the other mode to the current mode. The mode switching determination unit includes information that can derive the power consumption to be compared.

この構成によれば、移行処理及び復帰処理に伴う電力消費量をも考慮した動作モードの切替えを行うことによる電力消費量と、動作モードの切替えを行わない場合の電力消費量との比較に基づいて、判定が行われる。それにより、移行処理及び復帰処理に伴う電力消費量を直接に考慮した、より一層精度の高い判定が得られる。その結果、一層適切なモード切替が実現する。   According to this configuration, based on a comparison between the power consumption by switching the operation mode in consideration of the power consumption associated with the transition process and the return process, and the power consumption when the operation mode is not switched. The determination is made. Thereby, it is possible to obtain a more accurate determination that directly takes into account the power consumption associated with the transition process and the return process. As a result, more appropriate mode switching is realized.

第8の態様に係る構成と同様に、本構成においても、モード切替判定部は、別のモードが継続する期間を算出し、算出した値を、当該期間における電力消費量の算出に用いる。なお、消費電力と電力消費量との関係についても、既述の通りである。   Similar to the configuration according to the eighth aspect, also in this configuration, the mode switching determination unit calculates a period in which another mode continues, and uses the calculated value for calculating the power consumption amount in the period. The relationship between power consumption and power consumption is also as described above.

本発明のうち第10の態様に係るものは、第1ないし第9の何れかの態様に係る省電力処理装置であって、タイマイベントを管理するタイマイベント管理部を更に備え、前記時間予測部は、前記タイマイベント管理部が管理しているタイマイベントを検索することにより、タイマイベントが実行される時刻に基づいて、予測の対象とされる、移行先のモードが解除されるまでの時間を予測するタイマイベント予測部を有するものである。   According to a tenth aspect of the present invention, there is provided a power saving processing device according to any one of the first to ninth aspects, further comprising a timer event management unit for managing a timer event, wherein the time prediction unit Is the time until the transition destination mode is canceled based on the time when the timer event is executed by searching for the timer event managed by the timer event management unit. It has a timer event prediction unit for prediction.

この構成によれば、タイマイベント予測部が備わるので、モード切替判定部の判定の基礎となる予測時間に、タイマイベントが実行される時刻が反映される。それにより、より的確な判定が簡便に実現する。   According to this configuration, since the timer event prediction unit is provided, the time at which the timer event is executed is reflected in the prediction time that is the basis of the determination by the mode switching determination unit. Thereby, more accurate determination can be easily realized.

本発明のうち第11の態様に係るものは、第10の態様に係る省電力処理装置であって、前記タイマイベント管理部は、タイマイベントの実行に伴う前記対象装置の構成部分の使用又は不使用を示す装置使用情報をもタイマイベント毎に管理しており、前記電力消費情報管理部が管理する前記管理情報は、前記各省電力モードにおいて前記対象装置の構成部分のうち使用又は不使用となるものを示す装置選択情報を含んでおり、前記タイマイベント予測部は、前記装置使用情報及び前記装置選択情報を参照することにより、前記タイマイベント管理部が管理しているタイマイベントのうち、予測の対象とされる移行先のモードで不使用とされる前記対象装置の構成部分が最先に使用されるタイマイベントの実行時刻に基づいて、前記移行先のモードが解除されるまでの時間を予測するものである。   According to an eleventh aspect of the present invention, there is provided a power saving processing device according to the tenth aspect, wherein the timer event management unit uses or does not use a component part of the target device that accompanies execution of a timer event. Device usage information indicating use is also managed for each timer event, and the management information managed by the power consumption information management unit is used or not used in the constituent parts of the target device in each power saving mode. The timer event prediction unit refers to the device usage information and the device selection information, and the timer event prediction unit is configured to perform prediction of the timer events managed by the timer event management unit. Based on the execution time of the timer event in which the component part of the target device that is not used in the target transfer destination mode is used first, the transfer destination Is intended to predict the time until over de is released.

この構成によれば、タイマイベント予測部が、装置使用情報及び装置選択情報を参照することにより、タイマイベント管理部が管理しているタイマイベントのうち、予測の対象とされる移行先のモードで不使用とされる対象装置の構成部分が最先に使用されるタイマイベントの実行時刻に基づいて、移行先のモードが解除されるまでの時間を予測するので、各タイマイベントと移行先のモードにおける装置の使用・不使用状態をも考慮した、より緻密な予測時間が得られる。   According to this configuration, the timer event prediction unit refers to the device usage information and the device selection information, so that, in the timer event managed by the timer event management unit, in the transition destination mode to be predicted. Based on the execution time of the timer event that is used first by the component part of the target device that is not used, the time until the transition destination mode is released is predicted, so each timer event and the transition destination mode A more accurate prediction time can be obtained considering the use / non-use state of the device.

本発明のうち第12の態様に係るものは、第1ないし第11の何れかの態様に係る省電力処理装置であって、前記時間予測部は、過去に発生した1以上の種類の反復的割り込みの各々の時間間隔に基づいて、前記予測の対象とされる、移行先のモードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を予測する反復割込予測部を有するものである。   According to a twelfth aspect of the present invention, there is provided a power saving processing apparatus according to any one of the first to eleventh aspects, wherein the time prediction unit is one or more types of repetitive occurrences that occurred in the past. It has a repetitive interrupt prediction unit that predicts the time until the transition destination mode is canceled or the time until the current mode is restored based on the time interval of each interrupt. Is.

この構成によれば、反復割込予測部が備わるので、モード切替判定部の判定の基礎となる予測時間に、反復的割込みが生じる時刻が、過去の実績に基づいて反映される。それにより、より的確な判定が実現する。なお、時間予測部は、タイマイベント予測部と反復割込予測部との双方を有することができ、それにより、タイマイベントと反復的割込との双方を考慮した予測時間が得られる。   According to this configuration, since the iterative interrupt prediction unit is provided, the time when the repetitive interruption occurs is reflected in the prediction time that is the basis of the determination by the mode switching determination unit based on the past results. Thereby, more accurate determination is realized. Note that the time prediction unit can have both a timer event prediction unit and a repetitive interrupt prediction unit, thereby obtaining a prediction time considering both the timer event and the repetitive interrupt.

本発明のうち第13の態様に係るものは、第12の態様に係る省電力処理装置であって、前記反復割込予測部は、過去に発生した前記1以上の種類の反復的割り込みの各々の時間間隔の平均値を算出する計測部を有し、前記各々の前記平均値に基づいて、前記予測の対象とされる、移行先のモードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を予測するものである。   According to a thirteenth aspect of the present invention, there is provided a power saving processing device according to the twelfth aspect, wherein the repetitive interrupt predicting unit is configured so that each of the one or more types of repetitive interrupts generated in the past is performed. A measurement unit that calculates an average value of the time intervals of the above, and based on each of the average values, the time until the transition destination mode is canceled or the current mode that is the target of the prediction It predicts the time to return.

この構成によれば、過去に発生した各反復的割り込みの時間間隔の平均値に基づいて予測時間が得られるので、確度の高い予測時間が得られる。   According to this configuration, the predicted time can be obtained based on the average value of the time intervals of each repetitive interrupt that has occurred in the past, so that a predicted time with high accuracy can be obtained.

本発明のうち第14の態様に係るものは、第12の態様に係る省電力処理装置であって、前記反復割込予測部は、過去に発生した前記1以上の種類の反復的割り込みの各々の最新の時間間隔である最新時間間隔を算出する計測部を有し、前記各々の前記最新時間間隔に基づいて、前記予測の対象とされる、移行先のモードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を予測するものである。   According to a fourteenth aspect of the present invention, there is provided a power saving processing apparatus according to the twelfth aspect, wherein the repetitive interrupt predicting unit is configured so that each of the one or more types of repetitive interrupts generated in the past is performed. A measurement unit that calculates a latest time interval that is the latest time interval of the first time interval, and based on each of the latest time intervals, a time until the transition destination mode is released, which is a target of the prediction, or The time until returning to the current mode is predicted.

この構成によれば、最新の過去に発生した各反復的割り込みの時間間隔に基づいて予測時間が得られるので、簡単な演算で予測時間が得られる。   According to this configuration, since the predicted time can be obtained based on the time interval of each repetitive interrupt that has occurred in the latest past, the predicted time can be obtained by a simple calculation.

本発明のうち第15の態様に係るものは、第12ないし第14の何れかの態様に係る省電力処理装置であって、前記時間予測部は、過去に発生した前記1以上の反復的割り込みの各々の実行に伴う前記対象装置の構成部分の使用又は不使用を示す装置使用情報を管理しており、前記電力消費情報管理部が管理する前記管理情報は、前記各省電力モードにおいて前記対象装置の構成部分のうち使用又は不使用となるものを示す装置選択情報を含んでおり、前記反復割込予測部は、前記装置使用情報及び前記装置選択情報を参照することにより、過去に発生した前記1以上の種類の反復的割り込みのうち、予測の対象とされる移行先のモードで不使用とされる前記対象装置の構成部分が使用される反復的割り込みの時間間隔に基づいて、前記移行先のモードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を予測するものである。   According to a fifteenth aspect of the present invention, there is provided a power saving processing apparatus according to any one of the twelfth to fourteenth aspects, wherein the time prediction unit is configured to generate the one or more repetitive interrupts generated in the past. Managing device usage information indicating use or non-use of a component of the target device associated with each execution of the management information, and the management information managed by the power consumption information management unit is the target device in each power saving mode. Device selection information indicating what is used or not used among the constituent parts of, and the iterative interrupt prediction unit refers to the device usage information and the device selection information, and has occurred in the past Based on the time interval of the repetitive interrupt in which the component part of the target device that is not used in the destination mode to be predicted is used among one or more types of repetitive interrupts, the transition Time or the up mode is canceled is to predict the time to return to the current mode.

この構成によれば、反復割込予測部が、装置使用情報及び装置選択情報を参照することにより、過去に発生した各反復的割り込みのうち、予測の対象とされる移行先のモードで不使用とされる対象装置の構成部分が使用される反復的割込の時間間隔に基づいて、予測時間を得るので、各反復的割込と移行先のモードにおける装置の使用・不使用状態をも考慮した、より緻密な予測時間が得られる。   According to this configuration, the iterative interrupt prediction unit refers to the device usage information and the device selection information, and is not used in the transition destination mode to be predicted among the repetitive interrupts generated in the past. Since the estimated time is obtained based on the time interval of the repetitive interrupt in which the component part of the target device is used, the use / non-use state of the device in each repetitive interrupt and the destination mode is also considered A more precise prediction time can be obtained.

本発明のうち第16の態様に係るものは、第1ないし第15の何れかの態様に係る省電力処理装置であって、前記省電力処理装置は、前記対象装置に含まれ、自身をも動作モードの切替えの対象とするものである。   According to a sixteenth aspect of the present invention, there is provided a power saving processing device according to any one of the first to fifteenth aspects, wherein the power saving processing device is included in the target device and includes itself. This is a target for switching the operation mode.

この構成によれば、省電力処理装置は、対象装置の一部として、自身をも動作モードの切替えの対象とするので、より効果的な省電力処理が実現する。   According to this configuration, since the power saving processing device is also subject to the operation mode switching as a part of the target device, more effective power saving processing is realized.

本発明のうち第17の態様に係るものは、第1ないし第16の何れかの態様に係る省電力処理装置であって、前記省電力処理装置は、単一の半導体基板に作り込まれた半導体集積回路として形成されているものである。   According to a seventeenth aspect of the present invention, there is provided a power saving processing apparatus according to any one of the first to sixteenth aspects, wherein the power saving processing apparatus is built on a single semiconductor substrate. It is formed as a semiconductor integrated circuit.

この構成によれば、本発明の省電力処理装置が単一の半導体基板に形成されているので、本発明の省電力処理装置をコンパクトに利用することができる。従って、本構成は、携帯電話機等の携帯通信端末への利用に好適である。   According to this configuration, since the power saving processing apparatus of the present invention is formed on a single semiconductor substrate, the power saving processing apparatus of the present invention can be used in a compact manner. Therefore, this configuration is suitable for use in a mobile communication terminal such as a mobile phone.

本発明のうち第18の態様に係るものは、対象装置の動作モードを通常モード及び1以上の省電力モードを含む複数モードの間で切り替える省電力処理方法であって、前記動作モードの切替え処理に関する情報を管理する電力消費情報管理工程と、前記複数モードのうちの現在のモードから別のモードへの切替え要求が発生した際に、当該切替え要求に応じた場合に、前記別のモードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を予測する時間予測工程と、前記電力消費情報管理工程が管理する前記情報である管理情報と前記時間予測工程が予測した前記時間である予測時間とに基づいて、前記動作モードを前記現在のモードから前記別のモードへ切替えるか否かの判定を行うモード切替判定工程と、前記モード切替判定工程の判定に従って、前記対象装置の前記動作モードを切替える省電力モード実行工程と、を備えている。   According to an eighteenth aspect of the present invention, there is provided a power saving processing method for switching an operation mode of a target device between a normal mode and a plurality of modes including one or more power saving modes, wherein the operation mode switching processing is performed. When a request for switching from the current mode of the plurality of modes to another mode is generated, the other mode is canceled when the request for switching is received. A time prediction step for predicting a time until the current mode is returned or a time for returning to the current mode, management information that is the information managed by the power consumption information management step, and the time predicted by the time prediction step. A mode switching determination step for determining whether to switch the operation mode from the current mode to the other mode based on a certain prediction time; and the mode switching According to the judgment of a constant step, and a, a power-saving mode execution step of switching the operation mode of the target device.

そして、前記管理情報は、前記現在のモードから前記別の各モードへの移行処理に要する処理時間と、前記別の各モードから前記現在のモードへの復帰処理に要する処理時間と、のうち前記各モードについての前記予測時間により、前記別の各モードが継続する期間を導出し得る情報を含んでいるものである。   The management information includes the processing time required for the transition processing from the current mode to each of the other modes, and the processing time required for the return processing from each of the other modes to the current mode. According to the predicted time for each mode, information that can derive a period in which each of the other modes continues is included.

この構成によれば、本発明の第1の態様に係る省電力装置について述べたと同様の理由により、動作モードを切り替えるための移行処理及び復帰処理に伴う電力消費量をも考慮した適切なモード切替えが実現する。   According to this configuration, for the same reason as described for the power saving device according to the first aspect of the present invention, appropriate mode switching that also considers the power consumption associated with the transition process and the return process for switching the operation mode Is realized.

本発明のうち第19の態様に係るものは、対象装置の動作モードを通常モード及び1以上の省電力モードを含む複数モードの間で切り替える省電力処理装置としてコンピュータを機能させる省電力処理プログラムであって、前記動作モードの切替え処理に関する情報を管理する電力消費情報管理手段と、前記複数モードのうちの現在のモードから別のモードへの切替え要求が発生した際に、当該切替え要求に応じた場合に、前記別のモードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を予測する時間予測手段と、前記電力消費情報管理手段が管理する前記情報である管理情報と前記時間予測手段が予測した前記時間である予測時間とに基づいて、前記動作モードを前記現在のモードから前記別のモードへ切替えるか否かの判定を行うモード切替判定手段と、前記モード切替判定手段の判定に従って、前記対象装置の前記動作モードを切替える省電力モード実行手段として前記コンピュータを機能させる。   According to a nineteenth aspect of the present invention, there is provided a power saving processing program for causing a computer to function as a power saving processing device that switches an operation mode of a target device between a normal mode and a plurality of modes including one or more power saving modes. And a power consumption information management means for managing information related to the switching process of the operation mode, and when a switching request from the current mode to another mode of the plurality of modes is generated, the switching request is responded to A time prediction unit that predicts a time until the other mode is canceled or a time until the current mode is restored, management information that is the information managed by the power consumption information management unit, and Whether to switch the operation mode from the current mode to the other mode based on the predicted time which is the time predicted by the time prediction means A mode switching determining means for determining, according to the determination of the mode changeover judging part, causes the computer to function as the power saving mode executing means for switching the operation mode of the target device.

そして、前記管理情報は、前記現在のモードから前記別の各モードへの移行処理に要する処理時間と、前記別の各モードから前記現在のモードへの復帰処理に要する処理時間と、のうち前記各モードについての前記予測時間により、前記別の各モードが継続する期間を導出し得る情報を含んでいるものである。   The management information includes the processing time required for the transition processing from the current mode to each of the other modes, and the processing time required for the return processing from each of the other modes to the current mode. According to the predicted time for each mode, information that can derive a period in which each of the other modes continues is included.

この構成によれば、本発明の第1の態様に係る省電力装置について述べたと同様の理由により、動作モードを切り替えるための移行処理及び復帰処理に伴う電力消費量をも考慮した適切なモード切替えが実現する。   According to this configuration, for the same reason as described for the power saving device according to the first aspect of the present invention, appropriate mode switching that also considers the power consumption associated with the transition process and the return process for switching the operation mode Is realized.

以上に述べたように、本発明の省電力処理装置、省電力処理方法及び省電力処理プログラムによれば、動作モードを切り替えるための移行処理及び復帰処理に伴う電力消費量をも考慮した適切なモード切替えが実現する。   As described above, according to the power saving processing device, the power saving processing method, and the power saving processing program of the present invention, an appropriate power consumption associated with the transition process and the return process for switching the operation mode is also considered. Mode switching is realized.

以下、本発明の実施の形態について、図面を参照しながら説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(実施の形態1)
図1は、本発明の実施の形態1による情報処理装置の構成を示すブロック図である。この情報処理装置1000は、それ自体としてユーザの使用に供することもできるが、様々な電気機器に組み込まれてもよい。情報処理装置1000の一例は、PDA(Personal Digital Assistance)或いは携帯電話機等の携帯通信端末である。携帯通信端末では、小型の電池が電源として用いられるので、後述する省電力処理装置による向上した省電力効果がもたらす利益が甚大である。
(Embodiment 1)
FIG. 1 is a block diagram showing the configuration of the information processing apparatus according to Embodiment 1 of the present invention. The information processing apparatus 1000 can be used by a user as it is, but may be incorporated in various electric devices. An example of the information processing apparatus 1000 is a mobile communication terminal such as a PDA (Personal Digital Assistance) or a mobile phone. In a portable communication terminal, a small battery is used as a power source, and thus the benefits brought about by the improved power saving effect by the power saving processing device described later are enormous.

情報処理装置1000は、CPU(Central Processing Unit;中央演算処理部)1、メモリ装置2、通信装置34、入力装置40、表示装置45、タイマー回路51及び割込コントローラ55を備えている。これらの装置は、バスライン50を通じて互いに接続されている。また、必要に応じて、バスライン50には、ハードディスク装置25及び読取装置32を接続することが可能となっている。ハードディスク装置25、読取装置32、入力装置40及び表示装置45は、それぞれ、インタフェース26、35、41及び46を通じてバスライン50に接続される。   The information processing apparatus 1000 includes a CPU (Central Processing Unit) 1, a memory device 2, a communication device 34, an input device 40, a display device 45, a timer circuit 51, and an interrupt controller 55. These devices are connected to each other through a bus line 50. Further, the hard disk device 25 and the reading device 32 can be connected to the bus line 50 as necessary. The hard disk device 25, the reading device 32, the input device 40, and the display device 45 are connected to the bus line 50 through the interfaces 26, 35, 41, and 46, respectively.

CPU1は、単一のCPUで構成されても良く、複数のCPUで構成されても良い。一例として、情報処理装置1000は、複数のCPU11、12、13、・・・を有するものとする。メモリ装置2は、ROM(Read Only Memory)21及びRAM(Random Access Memory)22を備えている。ROM21は、CPU1の動作を規定するコンピュータプログラムを記憶している。コンピュータプログラムは、ハードディスク装置25に記憶させることもできる。CPU1は、ROM21又はハードディスク装置25が格納するコンピュータプログラムを、必要に応じてRAM22に書込みつつ、コンピュータプログラムが規定する処理を実行する。RAM22は、CPU1が処理を実行するのに伴って発生するデータを一時的に記憶する媒体としても機能する。   The CPU 1 may be composed of a single CPU or a plurality of CPUs. As an example, the information processing apparatus 1000 includes a plurality of CPUs 11, 12, 13,. The memory device 2 includes a ROM (Read Only Memory) 21 and a RAM (Random Access Memory) 22. The ROM 21 stores a computer program that defines the operation of the CPU 1. The computer program can also be stored in the hard disk device 25. The CPU 1 executes processing defined by the computer program while writing the computer program stored in the ROM 21 or the hard disk device 25 to the RAM 22 as necessary. The RAM 22 also functions as a medium for temporarily storing data generated as the CPU 1 executes processing.

ハードディスク装置25は、内蔵する不図示のハードディスクに対して、コンピュータプログラム、或いはデータを書込み及び読出しする装置である。読取装置32は、CD−ROM31に記録されたコンピュータプログラム、或いはデータを読み取る装置である。通信装置34は、電話回線等の電気通信回線33を通じて、外部と自身との間で、コンピュータプログラム、或いはデータを交換する装置である。入力装置40は、ユーザの操作によりデータ等を入力する装置であり、例えば、PDAに配列されたキーボード、携帯電話機に配列された入力ボタン、或いは着脱自在のマウス、キーボードである。表示装置45は、データ、画像等を画面に表示したり、データ等を音声で表示したりする装置であり、例えばLCD(Liquid Crystal Display;液晶表示器)である。   The hard disk device 25 is a device that writes and reads a computer program or data to a built-in hard disk (not shown). The reading device 32 is a device that reads a computer program or data recorded on the CD-ROM 31. The communication device 34 is a device that exchanges a computer program or data between the outside and itself through an electric communication line 33 such as a telephone line. The input device 40 is a device for inputting data or the like by a user operation, and is, for example, a keyboard arranged on a PDA, an input button arranged on a mobile phone, or a detachable mouse or keyboard. The display device 45 is a device that displays data, images, and the like on a screen and displays data and the like by voice, and is, for example, an LCD (Liquid Crystal Display).

タイマー回路51は、一定の周期でタイマー割込信号を出力する装置である。割込コントローラ55は、タイマー回路51、入力装置40、CPU1のうちの処理実行中のCPU以外のCPU、ネットワークデバイスとしての通信装置34、ハードディスク装置25、読取装置32等から送られる割込要求信号を、CPU1へ中継する装置である。各装置からの割込要求には優先度が付けられている。割り込みコントローラ55は、同時に複数の装置から割り込みが発生した場合には、それらの要求を優先度に応じて調停する機能を有している。   The timer circuit 51 is a device that outputs a timer interrupt signal at a constant cycle. The interrupt controller 55 is an interrupt request signal sent from the timer circuit 51, the input device 40, a CPU other than the CPU that is executing the processing of the CPU 1, the communication device 34 as a network device, the hard disk device 25, the reading device 32, or the like. Is a device that relays to the CPU 1. Priorities are assigned to interrupt requests from each device. The interrupt controller 55 has a function of arbitrating requests according to priority when interrupts are simultaneously generated from a plurality of devices.

以上のように、情報処理装置1000は、コンピュータとして構成されている。上記コンピュータプログラムは、ROM21、不図示のフレキシブルディスク、CD−ROM31等のプログラム記録媒体を通じて供給することも、電気通信回線33等の伝送媒体を通じて供給することも可能である。例えば、プログラム記録媒体としてCD−ROM31に記録されたコンピュータプログラムは、読取装置32を情報処理装置1000へ接続することにより、読み出すことができ、更にRAM22或いはハードディスク装置25に格納することができる。   As described above, the information processing apparatus 1000 is configured as a computer. The computer program can be supplied through a program recording medium such as a ROM 21, a flexible disk (not shown), a CD-ROM 31, or a transmission medium such as a telecommunication line 33. For example, a computer program recorded on a CD-ROM 31 as a program recording medium can be read out by connecting the reading device 32 to the information processing device 1000 and further stored in the RAM 22 or the hard disk device 25.

プログラム記録媒体としてROM21によってコンピュータプログラムが供給される場合には、当該ROM21を情報処理装置1000に搭載することにより、CPU1は上記コンピュータプログラムに従った処理を実行可能となる。電気通信回線33等の伝送媒体を通じて供給されるコンピュータプログラムは、通信装置34を通じて受信され、例えば、RAM22或いはハードディスク装置25に格納される。伝送媒体は、有線の伝送媒体に限られず、無線の伝送媒体であっても良い。また、伝送媒体は通信線路のみでなく、通信線路を中継する中継装置、例えばルータをも含む。   When a computer program is supplied from the ROM 21 as a program recording medium, the CPU 1 can execute processing according to the computer program by mounting the ROM 21 in the information processing apparatus 1000. A computer program supplied through a transmission medium such as the electric communication line 33 is received through the communication device 34 and stored in the RAM 22 or the hard disk device 25, for example. The transmission medium is not limited to a wired transmission medium, and may be a wireless transmission medium. The transmission medium includes not only a communication line but also a relay device that relays the communication line, such as a router.

CPU1、及び省電力処理プログラムを格納するメモリ装置2を備え、それ自身コンピュータとして構成される省電力処理装置10は、情報処理装置1000に組み込まれることにより、情報処理装置1000の動作モードを、通常モードと省電力モードとの間で切り替える。省電力処理装置10は、好ましくは自身をも含めて、動作モードを通常モードと省電力モードとの間で切り替える。省電力処理装置10は、更に好ましくは、CPU1及びメモリ装置2を単一の半導体基板に作り込んだLSI(Large Scale Integrated circuit)等の集積回路として構成される。   The power saving processing device 10 that includes the CPU 1 and the memory device 2 that stores the power saving processing program and is configured as a computer itself is incorporated in the information processing device 1000 to change the operation mode of the information processing device 1000 normally. Switch between mode and power saving mode. The power saving processing device 10 preferably switches the operation mode between the normal mode and the power saving mode, including itself. The power saving processing device 10 is more preferably configured as an integrated circuit such as an LSI (Large Scale Integrated circuit) in which the CPU 1 and the memory device 2 are formed on a single semiconductor substrate.

図2は、省電力処理装置10のうちのメモリ装置2に格納されているプログラムの構成を示すブロック図である。メモリ装置2には、一つ以上のタスク60、計算機装置のオペレーティングシステム(OS)100を含むプログラムやデータが格納されている。タスク60に含まれる個々のタスク61、62、63等は、アプリケーションであってもよく、ファイルシステム、ブラウザ等のミドルウェアであってもよく、デバイスドライバ等のOS100の一部であってもよい。図1では一例として、タスク60は、OS100以外のプログラムとして描かれている。   FIG. 2 is a block diagram illustrating a configuration of a program stored in the memory device 2 of the power saving processing device 10. The memory device 2 stores programs and data including one or more tasks 60 and an operating system (OS) 100 of the computer device. Each task 61, 62, 63, etc. included in the task 60 may be an application, middleware such as a file system or browser, or a part of the OS 100 such as a device driver. In FIG. 1, as an example, the task 60 is depicted as a program other than the OS 100.

タスク60に含まれる各タスク61、62、63等は、通常のマルチタスク型の計算機装置において管理されるタスクと同様に、それぞれ優先度を持ち、優先度に応じた順番で処理される。割り込み等のイベントが発生すると、OS100に準備されているハンドラがタスクに優先して実行される。「イベントの実行」とは、イベントの発生を契機としたハンドラの実行、及び、OS100に準備されているシステムコール等の後続する実行等を意味する。それに伴ってタスクの優先度に変更があれば、OS100が有するタスクスケジューラは、変更後の優先度に基づいてタスク60を実行させる。OS100は、ROM21とRAM22との何れに保持されていても良い。   Each of the tasks 61, 62, 63, etc. included in the task 60 has a priority and is processed in the order corresponding to the priority, similarly to the tasks managed in a normal multitasking computer apparatus. When an event such as an interrupt occurs, a handler prepared in the OS 100 is executed with priority over a task. “Execution of event” means execution of a handler triggered by the occurrence of an event and subsequent execution of a system call or the like prepared in the OS 100. If the task priority changes accordingly, the task scheduler of the OS 100 causes the task 60 to be executed based on the changed priority. The OS 100 may be held in either the ROM 21 or the RAM 22.

OS100は、CPU1と協働して省電力処理装置10を実現するために、主要な要素として、モード切替指示部75、電力消費情報管理部101、時間予測部102、モード切替判定部103、及びモード切替実行部104を備えている。モード切替指示部75は、通常モードから省電力モードへの切替え要求を電力消費情報管理部101へ伝える。CPU1の実行が一定期間にわたってないとき、電池容量が低下したとき、入力装置40へユーザの入力操作が一定期間にわたってないとき、表示装置45に待ち受け画面が静止状態で表示されたまま一定期間が経過したとき、或いは、ユーザが入力装置40を操作して省電力モードへの移行を指示したとき、などを契機としてモード切替指示部75は切替え要求を伝える。   In order to realize the power saving processing device 10 in cooperation with the CPU 1, the OS 100 includes, as main elements, a mode switching instruction unit 75, a power consumption information management unit 101, a time prediction unit 102, a mode switching determination unit 103, and A mode switching execution unit 104 is provided. The mode switching instruction unit 75 notifies the power consumption information management unit 101 of a switching request from the normal mode to the power saving mode. When the execution of the CPU 1 is not performed for a certain period, when the battery capacity is reduced, when the user's input operation to the input device 40 is not performed for a certain period, the certain period elapses while the standby screen is displayed on the display device 45 in a stationary state. Or when the user operates the input device 40 to instruct the shift to the power saving mode, the mode switching instruction unit 75 notifies the switching request.

省電力モードは、単一種類である必要はなく、複数種類のものが準備されても良い。本実施の形態では、省電力モードは、省電力効果の異なる複数段階のものが準備されている。省電力モードが複数種類である場合には、モード切替指示部75は、移行先の省電力モードを指定して、省電力モードへの移行を指示する。なお、動作モードは省電力モードへ移行する直前に、CPU1は動作を停止しているとは限らず、CPU1はタスク60の処理を実行中であってもよい。例えば、表示装置45に待ち受け画面が静止状態で表されているときであっても、CPU1は、画面を表示するためのタスクを実行している。   The power saving mode does not need to be a single type, and a plurality of types may be prepared. In this embodiment, power saving modes are prepared in a plurality of stages with different power saving effects. When there are a plurality of power saving modes, the mode switching instruction unit 75 designates the power saving mode of the transfer destination and instructs to shift to the power saving mode. Note that the CPU 1 does not necessarily stop operating immediately before the operation mode shifts to the power saving mode, and the CPU 1 may be executing the processing of the task 60. For example, even when the standby screen is displayed in a stationary state on the display device 45, the CPU 1 is executing a task for displaying the screen.

電力消費情報管理部101は、動作モードの切替え処理に関する情報(以下、「管理情報」と称する)を管理している。図2に示す省電力モードテーブル150及び電力消費情報テーブル170は、管理情報の具体例に該当する。   The power consumption information management unit 101 manages information related to operation mode switching processing (hereinafter referred to as “management information”). The power saving mode table 150 and the power consumption information table 170 illustrated in FIG. 2 correspond to specific examples of management information.

図3は、省電力モードテーブル150の一例を表形式で示す説明図である。省電力モードテーブル150には、識別番号151、動作モード152、及び装置選択情報153が互いに関連づけて記録されている。識別番号151は、各動作モードを識別するための情報、すなわち識別情報の一形態である。識別番号151の代わりに、他の何らかの識別符号を用いてもよく、一般に何らかの識別情報を用いてもよい。識別情報なしで各省電力モードが識別できる場合には、識別情報は無用である。   FIG. 3 is an explanatory diagram showing an example of the power saving mode table 150 in a table format. In the power saving mode table 150, an identification number 151, an operation mode 152, and device selection information 153 are recorded in association with each other. The identification number 151 is a form of information for identifying each operation mode, that is, identification information. Instead of the identification number 151, some other identification code may be used, and generally some identification information may be used. When each power saving mode can be identified without the identification information, the identification information is useless.

動作モード152は、各動作モードの処理内容を示している。これらの内容は、情報処理装置1000の各装置要素に対する処理の組み合わせを表す装置選択情報153によって決定づけられている。省電力モードテーブル150は、装置選択情報153に例示したような各装置要素に対する処理が管理できるものであれば足りる。例えば、省電力モードテーブル150は、識別番号151と装置選択情報153のみからなっていてもよく、それらに他の情報が付加されていても良い。   The operation mode 152 shows the processing content of each operation mode. These contents are determined by device selection information 153 that represents a combination of processes for each device element of the information processing device 1000. The power saving mode table 150 only needs to be able to manage processing for each device element as exemplified in the device selection information 153. For example, the power saving mode table 150 may consist only of the identification number 151 and the device selection information 153, and other information may be added thereto.

識別番号151が「0」である動作モードは、通常モードであり、「1」「2」・・である動作モードは、複数種類の省電力モードである。通常モード「0」では、各装置要素は、その全性能を発揮するように処理される。通常モード「0」について、各装置要素に対する処理内容は、OS100において自明であるので、格別に省電力モードテーブル150に記録されなくてもよい。   The operation mode in which the identification number 151 is “0” is the normal mode, and the operation mode in which the identification number 151 is “1” “2”... Is a plurality of types of power saving modes. In the normal mode “0”, each device element is processed to exhibit its full performance. Regarding the normal mode “0”, the processing content for each device element is self-evident in the OS 100, so that it may not be recorded in the power saving mode table 150.

省電力モード「1」は、外部メモリのみをスリープさせる省電力モードである。このモードでは、CPU1のクロック周波数は高く、内部メモリは通常通り動作し(ON)、外部メモリは待機モードであり(OFF)、通信装置34すなわちネットワークインタフェースには通常通り電源が供給され(ON)、表示装置45の一例であるLCDの輝度は通常通り高く設定する。   The power saving mode “1” is a power saving mode in which only the external memory sleeps. In this mode, the CPU 1 has a high clock frequency, the internal memory operates normally (ON), the external memory is in standby mode (OFF), and power is supplied to the communication device 34, that is, the network interface as usual (ON). The brightness of the LCD, which is an example of the display device 45, is set high as usual.

装置選択情報153に例示する要素以外に、省電力処理が適用できる他の種々の装置要素を省電力処理の対象とすることができる。例えば、種々の演算処理装置を省電力処理の対象とすることができ、CPU1の動作及び停止、DSPなどの各種プロセッサの動作及び停止を省電力処理の対象とすることが可能である。また、種々の記憶装置も省電力処理の対象とすることが可能である。例えば、DRAMやSRAMなどの揮発性メモリ(RAM22はその一例)やフラッシュROMなどの不揮発性メモリ(ROM21はその一例)、或いはメモリカードやハードディスクやフロッピー(登録商標)ディスクドライブや、CDドライブとしての読取装置32や、DVDドライブなどを、省電力処理の対象とすることが可能である。また、機器に応じた種々の入力装置40やインタフェースも省電力処理の対象とすることが可能である。例えば、アンテナやキーやマウス、或いは、USBやIEEE1394やPCMCIAなどのシリアル又はパラレルインタフェースも省電力処理の対象とすることが可能である。さらには、LCDやCRT等の表示装置45、或いは照明装置なども、省電力処理の対象とすることが可能である。   In addition to the elements exemplified in the device selection information 153, other various device elements to which the power saving process can be applied can be the targets of the power saving process. For example, various arithmetic processing devices can be the target of power saving processing, and the operation and stop of the CPU 1 and the operations and stopping of various processors such as a DSP can be targeted for power saving processing. Various storage devices can also be the target of power saving processing. For example, a volatile memory such as DRAM or SRAM (RAM 22 is an example), a nonvolatile memory such as a flash ROM (ROM 21 is an example), a memory card, a hard disk, a floppy (registered trademark) disk drive, or a CD drive. The reading device 32, a DVD drive, or the like can be a target of power saving processing. In addition, various input devices 40 and interfaces corresponding to the devices can be targeted for power saving processing. For example, an antenna, a key, a mouse, or a serial or parallel interface such as USB, IEEE 1394, or PCMCIA can be a target of power saving processing. Furthermore, a display device 45 such as an LCD or a CRT, or a lighting device can be a target of power saving processing.

また、省電力処理の内容は、各装置要素に対してクロック周波数の昇降や、待機モードのON・OFFや、電源のON・OFFに限られない。省電力処理の内容は、LCDの輝度の昇降に例示されるように、処理対象としての各装置要素によって適用できる省電力処理は異なる。処理対象となる装置要素に独自の省電力処理を規定することも可能である。   The contents of the power saving process are not limited to the increase / decrease of the clock frequency for each device element, ON / OFF of the standby mode, and ON / OFF of the power source. The content of the power saving process is different depending on each device element as a processing target, as exemplified by the increase / decrease in the brightness of the LCD. It is also possible to define a unique power saving process for a device element to be processed.

なお、本実施の形態1では、複数の省電力モードが設定されているが、既に述べたように、省電力モードは単一であっても良い。また省電力の対象となる装置要素が単一であっても良い。例えば、図3の識別番号「1」に対応する、外部メモリをスリープするモードのみが、省電力モードとして管理されてもよい。その場合には、各装置要素へ適用する省電力の処理として、通常モードと比較して外部メモリを待機モードにする(OFFにする)ことだけが管理されてもよい。   In the first embodiment, a plurality of power saving modes are set. However, as described above, the power saving mode may be single. In addition, a single device element for power saving may be used. For example, only the mode that sleeps the external memory corresponding to the identification number “1” in FIG. 3 may be managed as the power saving mode. In that case, as a power saving process applied to each device element, it may be managed that the external memory is set to the standby mode (turned off) as compared with the normal mode.

図4は、電力消費情報テーブル170の一例を表形式で示す説明図である。電力消費情報テーブル170には、キーとして省電力モードテーブル150と共有される情報である識別番号151及び動作モード152に、2種類の電力消費量171、172、及び消費電力173が互いに関連付けて記録されている。電力消費量171は、通常モードから各省電力モードへの移行処理に伴って、情報処理装置1000に発生する電力消費量(mJ)である。電力消費量172は、各省電力モードから通常モードへの復帰処理に伴って情報処理装置1000に発生する電力消費量(mJ)である。   FIG. 4 is an explanatory diagram showing an example of the power consumption information table 170 in a table format. In the power consumption information table 170, two types of power consumptions 171 and 172 and power consumption 173 are recorded in association with each other in an identification number 151 and an operation mode 152 which are information shared with the power saving mode table 150 as a key. Has been. The power consumption 171 is the power consumption (mJ) generated in the information processing apparatus 1000 in accordance with the transition process from the normal mode to each power saving mode. The power consumption amount 172 is a power consumption amount (mJ) generated in the information processing apparatus 1000 due to the return processing from each power saving mode to the normal mode.

より詳細には、電力消費量171には、移行処理に要する消費電力(W)と処理時間(msec)とが含まれており、電力消費量172には、復帰処理に要する消費電力(W)と処理時間(msec)とが含まれている。電力消費量171及び172として、消費電力(W)と処理時間(msec)とが記録される代わりに、電力消費量(mJ)と処理時間(msec)とが記録されても良い。電力消費量171及び172(mJ)は、省電力モードを利用することによって生じるオーバーヘッドの電力消費量である。消費電力173は、各動作モードにおける消費電力(mW)である。   More specifically, the power consumption 171 includes power consumption (W) and processing time (msec) required for the migration process, and the power consumption 172 includes power consumption (W) required for the return process. And processing time (msec). Instead of recording power consumption (W) and processing time (msec) as power consumption 171 and 172, power consumption (mJ) and processing time (msec) may be recorded. The power consumption amounts 171 and 172 (mJ) are overhead power consumption amounts caused by using the power saving mode. The power consumption 173 is power consumption (mW) in each operation mode.

例を挙げて説明すると、識別番号「2」の省電力モードは、内部メモリ及び外部メモリをスリープする省電力モードである。このモードでは、通常モードから省電力モードに切り替えるための移行処理に要する電力消費量は、200mW×2msec(=400mJ)である。この情報は、移行処理における消費電力が200mWであり、移行処理に2msecの処理時間を要することを示している。省電力モードから通常動作への復帰処理に要する電力消費量は、同じく200mW×2msecである。情報処理装置1000が内部メモリ(例えばメモリ装置2)及び外部メモリ(例えばハードディスク装置25)をスリープさせる省電力モード「2」で動作している時に消費する電力は、70mWである。   For example, the power saving mode with the identification number “2” is a power saving mode for sleeping the internal memory and the external memory. In this mode, the power consumption required for the transition process for switching from the normal mode to the power saving mode is 200 mW × 2 msec (= 400 mJ). This information indicates that the power consumption in the migration process is 200 mW, and that the migration process requires a processing time of 2 msec. The power consumption required for the return processing from the power saving mode to the normal operation is also 200 mW × 2 msec. The power consumed when the information processing apparatus 1000 is operating in the power saving mode “2” in which the internal memory (for example, the memory device 2) and the external memory (for example, the hard disk device 25) sleep is 70 mW.

各省電力モードは、情報処理装置1000等のシステムを開発する際などに設定される。省電力処理を適用する対象となる装置要素や、その装置要素へ適用される省電力処理の内容も事前に設定することができる。図3及び図4の各テーブルに記録される内容は、これらの設定内容に応じて、情報処理装置1000等の製造過程で記録することができる。例えば、電力消費量171,172及び消費電力173として、実測値或いは理論値を記録することができる。   Each power saving mode is set when a system such as the information processing apparatus 1000 is developed. The device element to which the power saving process is applied and the content of the power saving process applied to the device element can also be set in advance. The contents recorded in the tables of FIGS. 3 and 4 can be recorded in the manufacturing process of the information processing apparatus 1000 or the like according to these setting contents. For example, actual values or theoretical values can be recorded as the power consumptions 171 and 172 and the power consumption 173.

図2に戻って、モード切替指示部75からモード切替え要求が電力消費情報管理部101へ伝えられると、電力消費情報管理部101は、時間予測部102へモード切替え要求を伝える。或いは、モード切替指示部75から電力消費情報管理部101と時間予測部102との双方に、モード切替え要求を伝えても良い。図2は、前者の例を示している。   Returning to FIG. 2, when the mode switching request is transmitted from the mode switching instruction unit 75 to the power consumption information management unit 101, the power consumption information management unit 101 transmits the mode switching request to the time prediction unit 102. Alternatively, the mode switching request may be transmitted from the mode switching instruction unit 75 to both the power consumption information management unit 101 and the time prediction unit 102. FIG. 2 shows the former example.

時間予測部102は、通常モードから省電力モードへの切り替え要求が伝えられると、仮に省電力モードへ移行した場合に、移行先の省電力モードが解除されるまでの時間を予測する。時間予測部102が予測する時間(以下、「予測時間」と称する)は、切替え要求が伝えられてから省電力モードが解除されるまでの時間(後述する図7のTu+Ts)である。   When the request for switching from the normal mode to the power saving mode is transmitted, the time prediction unit 102 predicts the time until the transfer destination power saving mode is canceled if the mode is shifted to the power saving mode. The time predicted by the time prediction unit 102 (hereinafter referred to as “prediction time”) is the time (Tu + Ts in FIG. 7 described later) from when the switching request is transmitted until the power saving mode is canceled.

後述するように、モード切替判定部103は、この予測時間と、電力消費情報テーブル170とに基づいて、省電力モードに切り替えてから通常動作に復帰するまでの時間(後述する図7のTs)を算出する。すなわち、モード切替判定部103は、情報処理装置1000が省電力モードでの動作を継続する期間(以下、「継続期間」と称する)を算出する。モード切替判定部103は、継続期間を用いることにより、動作モードを通常モードから省電力モードへ切り替えるか否かを判定する。   As will be described later, the mode switching determination unit 103 is based on the predicted time and the power consumption information table 170 until switching to the power saving mode until returning to normal operation (Ts in FIG. 7 described later). Is calculated. That is, the mode switching determination unit 103 calculates a period during which the information processing apparatus 1000 continues to operate in the power saving mode (hereinafter referred to as “continuation period”). The mode switching determination unit 103 determines whether to switch the operation mode from the normal mode to the power saving mode by using the duration.

情報処理装置1000の動作モードが省電力モードである場合に、装置要素であるCPU1やメモリ2や周辺デバイスを使用する際には、情報処理装置1000は省電力モードを解除して通常動作に復帰しなければならない。従って、次に装置要素が使用される時刻を予測することによって、予測時間を得ることができる。時間予測部102は、予測時間を得るために、タイマイベント予測部74及び反復割込予測部73を有している。   When the operation mode of the information processing apparatus 1000 is the power saving mode, the information processing apparatus 1000 cancels the power saving mode and returns to the normal operation when using the CPU 1, the memory 2, or the peripheral device as the device elements. Must. Therefore, the predicted time can be obtained by predicting the next time when the device element is used. The time prediction unit 102 includes a timer event prediction unit 74 and an iterative interrupt prediction unit 73 in order to obtain a prediction time.

タイマイベント予測部74は、OS100や各種デバイスドライバ(OS100の一部であっても良い)などのソフトウェア(すなわちプログラム)が登録しているタイマイベントを検索して、最寄りの、すなわち現在に最も近い将来のタイマイベントが発生する時刻までの時間を、予測時間として得る。タイマイベントは、ソフトウェアが指定した時刻に、指定した処理を実行するために、システムに登録されているものである。タイマイベントの登録及び実行を実現するために、省電力処理装置10は、タイマイベント登録部70、イベント実行部71及びタイマリスト管理キュー201を有している。   The timer event prediction unit 74 searches for a timer event registered by software (that is, a program) such as the OS 100 and various device drivers (which may be a part of the OS 100), and is nearest, that is, closest to the present. The time until the time when a future timer event occurs is obtained as the predicted time. A timer event is registered in the system in order to execute a specified process at a time specified by software. In order to realize registration and execution of a timer event, the power saving processing apparatus 10 includes a timer event registration unit 70, an event execution unit 71, and a timer list management queue 201.

タイマイベント登録部70は、例えば、タスク61が有するイベント発行部61Aからの登録要求に基づいて、要求されたイベントをタイマリスト管理キュー201へ登録する。タイマリスト管理キュー201は、本発明のタイマイベント管理部の具体例に該当するもので、タイマイベントを管理する。タイマリスト管理キュー201は、その管理対象であるタイマイベントが時間とともに更新されるものであるので、RAM22に保持される。図2では、タイマリスト管理キュー201は、OS100に含まれないものとして描かれているが、OS100の一部であってもよい。   The timer event registration unit 70 registers the requested event in the timer list management queue 201 based on, for example, a registration request from the event issuing unit 61A included in the task 61. The timer list management queue 201 corresponds to a specific example of the timer event management unit of the present invention, and manages timer events. The timer list management queue 201 is held in the RAM 22 because the timer event to be managed is updated with time. In FIG. 2, the timer list management queue 201 is illustrated as not included in the OS 100, but may be a part of the OS 100.

タイマー回路51による周期的なタイマ割込が発生する毎に、イベント実行部71は、その時刻においてシステム、すなわち情報処理装置1000が実行すべきタイマイベントが存在するか否かをタイマリスト管理キュー201を参照することにより確認する。イベント実行部71は、その時刻に実行すべきものとして登録されているタイマイベントの全てを実行する。   Each time a periodic timer interrupt is generated by the timer circuit 51, the event execution unit 71 determines whether there is a timer event to be executed by the system, that is, the information processing apparatus 1000, at that time. Confirm by referring to. The event execution unit 71 executes all timer events registered as to be executed at that time.

タイマイベントが実行される際には、CPU1を使用する必要があるため、CPU1を通常動作に復帰させる必要がある場合が多い。さらに、CPU1の動作に伴い、メモリ2や周辺デバイスも使用される場合が多い。従って、タイマイベントが実行される時刻を先読みして、その時刻をシステム、すなわち情報処理装置1000が装置要素を使用する時刻と見なすことができる。   When the timer event is executed, it is necessary to use the CPU 1, and thus it is often necessary to return the CPU 1 to normal operation. Furthermore, the memory 2 and peripheral devices are often used with the operation of the CPU 1. Therefore, the time when the timer event is executed can be prefetched, and the time can be regarded as the time when the system, that is, the information processing apparatus 1000 uses the device element.

図5は、タイマリスト管理キュー201によってタイマイベントを管理する形態を模式的に描いた説明図である。図5において、タイマイベントA〜C、実行時刻202、及び実行ハンドラは、タイマリスト管理キュー201に保持されている情報であって、便宜上、タイマリスト管理キュー201の外側に取り出して描いたものである。   FIG. 5 is an explanatory diagram schematically illustrating a mode in which timer events are managed by the timer list management queue 201. In FIG. 5, the timer events A to C, the execution time 202, and the execution handler are information held in the timer list management queue 201 and are drawn outside the timer list management queue 201 for convenience. is there.

図5に例示するように、タイマイベントは実行される時刻が判別できる形で管理されている。図5の例では、各タイマイベントが、リスト構造によってタイマイベントA、タイマイベントB、タイマイベントCの順でつながれて管理されている。各タイマイベントには、そのタイマイベントを実行する時刻と、タイマイベントの処理として実行される実行ハンドラと、その実行ハンドラを実行する際に必要となるデータ(不図示)などが管理されている。図5の例は、タイマイベントAの実行時刻202は「5」であり、システムの時刻が「5」になった時にタイマイベントAが実行されることを示す。数値「5」は一例であって、実行時刻202は、例えば、msec単位の時刻で表現される。   As illustrated in FIG. 5, the timer event is managed in such a way that the execution time can be determined. In the example of FIG. 5, each timer event is managed by being connected in the order of timer event A, timer event B, and timer event C by a list structure. Each timer event manages a time at which the timer event is executed, an execution handler executed as processing of the timer event, data (not shown) necessary for executing the execution handler, and the like. The example of FIG. 5 indicates that the execution time 202 of the timer event A is “5”, and the timer event A is executed when the system time becomes “5”. The numerical value “5” is an example, and the execution time 202 is expressed, for example, in msec units.

時間予測部102のタイマイベント予測部74は、タイマリスト管理キュー201を検索することにより、最寄りのタイマイベントAを発見して、そのタイマイベントAに登録されている実行時刻202を取得する。タイマイベント予測部74は、取得した実行時刻202をデバイス使用時刻とみなし、システムが管理しているシステム時刻との差を算出して、予測時間を得る。タイマイベント予測部74は、予測時間を、モード切替判定部103に通知する。   The timer event prediction unit 74 of the time prediction unit 102 searches the timer list management queue 201 to find the nearest timer event A, and acquires the execution time 202 registered in the timer event A. The timer event prediction unit 74 regards the acquired execution time 202 as the device use time, calculates the difference from the system time managed by the system, and obtains the predicted time. The timer event prediction unit 74 notifies the mode switching determination unit 103 of the predicted time.

反復割込予測部73は、システムが周期的に実行している割り込み処理が実行される時刻までの時間を取得し、当該時間を予測時間とする。ここで周期的とは、一定周期である場合だけでなく、ばらつきのある時間間隔をもって反復的である場合をも含む趣旨である。   The iterative interrupt predicting unit 73 acquires the time until the time when the interrupt process periodically executed by the system is executed, and sets the time as the predicted time. Here, the term “periodic” is intended to include not only the case where the period is constant, but also the case where the period is repetitive with a time interval having a variation.

周期的に実行される割り込み処理の代表例は、ハードウェアタイマから一定の周期で入るタイマ割り込みである。この場合には、タイマー回路51(図1)とは別のタイマー回路がバスライン50に接続されている。また、図1に例示するようなマルチCPUを採用するシステムでは、現在実行中のCPUとは別のCPUへ情報をやりとりするための定期的な割り込みが、当該別のCPUから入ることがある。さらに、周辺デバイスからの定期的な割り込みも存在する。通信系のデバイスやネットワークデバイス(図1の通信装置34はその一例)などから通信のプロトコルにしたがって、一定の周期で入る割り込みもある。例えば、システムが携帯電話であれば、当該システムは、一定の周期で基地局からの電波を受信し、それに応答しなければならない。   A typical example of interrupt processing that is executed periodically is a timer interrupt that enters at a fixed cycle from a hardware timer. In this case, a timer circuit different from the timer circuit 51 (FIG. 1) is connected to the bus line 50. In a system employing a multi-CPU as illustrated in FIG. 1, a periodic interrupt for exchanging information to a CPU different from the CPU currently being executed may be input from the other CPU. In addition, there are periodic interrupts from peripheral devices. There is also an interrupt that enters at a constant period according to a communication protocol from a communication device or a network device (the communication device 34 in FIG. 1 is an example). For example, if the system is a mobile phone, the system must receive radio waves from the base station at regular intervals and respond to them.

これらの割り込み処理が実行される際には、タイマイベントを実行する場合と同様に、CPU1を使用する必要があるため、CPU1を通常動作に復帰させる必要がある場合が多い。さらに、CPU1の動作に伴い、メモリ2や周辺デバイスも使用される場合が多い。従って、現在からこれらの周期的に発生する割り込み処理までの時間を、予測時間とすることができる。   When these interrupt processes are executed, it is often necessary to return the CPU 1 to normal operation because it is necessary to use the CPU 1 as in the case of executing a timer event. Furthermore, the memory 2 and peripheral devices are often used with the operation of the CPU 1. Accordingly, the time from the present to the interrupt processing that occurs periodically can be set as the predicted time.

周期的割込みの周期に基づいて、予測時間を得るために、省電力処理装置10は割込記録テーブル220を備えており、反復割込予測部73は計測部72を有している。図6は、割込記録テーブル220の一例を表形式で示す説明図である。割込記録テーブル220には、割り込み内容221、状態222、最新時間間隔223、平均時間間隔224、平均回数225、並びに直前割込時刻226が、互いに関連づけて記録されている。割込記録テーブル220は、記録されている情報が時間とともに更新されるものであるので、RAM22に保持される。図2では、割込記録テーブル220は、OS100に含まれないものとして描かれているが、OS100の一部であってもよい。   In order to obtain a prediction time based on the periodic interrupt period, the power saving processing device 10 includes an interrupt recording table 220, and the iterative interrupt prediction unit 73 includes a measurement unit 72. FIG. 6 is an explanatory diagram showing an example of the interrupt recording table 220 in a table format. In the interrupt record table 220, interrupt contents 221, status 222, latest time interval 223, average time interval 224, average number of times 225, and immediately preceding interrupt time 226 are recorded in association with each other. Since the recorded information is updated with time, the interrupt recording table 220 is held in the RAM 22. In FIG. 2, the interrupt recording table 220 is illustrated as not included in the OS 100, but may be a part of the OS 100.

割り込み内容221は、周期的割込の種類を示す情報である。計測部72は、割り込み内容毎に、割り込みが最新に発生した時刻を直前割込時刻226として記録する。新たな割り込みが発生する毎に、直前割込時刻226は更新される。計測部72は、新たな割り込みが発生する毎に、最新時間間隔223及び平均時間間隔224を算出する。最新時間間隔223は、直前の周期的割り込み時刻と、その1回前の周期的割込の時刻との差、すなわち割り込みの最新の時間間隔を示す情報である。計測部72は、新たな割り込みが発生する毎に、新たな割り込みが発生した時刻と、更新前の直前割込時刻226との差を算出し、最新時間間隔223として記録する。   The interrupt content 221 is information indicating the type of periodic interrupt. The measuring unit 72 records the time when the interrupt occurred most recently as the previous interrupt time 226 for each interrupt content. Each time a new interrupt occurs, the previous interrupt time 226 is updated. The measurement unit 72 calculates the latest time interval 223 and the average time interval 224 each time a new interrupt occurs. The latest time interval 223 is information indicating the difference between the immediately preceding periodic interrupt time and the previous periodic interrupt time, that is, the latest interrupt time interval. Each time a new interrupt occurs, the measuring unit 72 calculates the difference between the time when the new interrupt occurs and the previous interrupt time 226 before the update, and records it as the latest time interval 223.

更に、計測部72は、新たな割り込みが発生する毎に、所定回数分の最新の割り込みの時間間隔の平均値を算出し、平均時間間隔224として記録する。計測部72は、平均時間間隔224を記録すると同時に、平均時間間隔224を算出する際の平均回数を、平均回数225として記録する。図6の例では、平均回数225として「10回」が記録されている。   Further, every time a new interrupt occurs, the measuring unit 72 calculates an average value of the time intervals of the latest interrupts for a predetermined number of times, and records the average value as the average time interval 224. The measuring unit 72 records the average time interval 224 and, at the same time, records the average number of times when calculating the average time interval 224 as the average number of times 225. In the example of FIG. 6, “10 times” is recorded as the average number of times 225.

計測部72は、新たな割り込みが発生する毎に、平均時間間隔224と平均回数225と、新たな割り込みの発生時刻とに基づいて、新たな平均時間間隔224を算出する。平均回数225は、定常動作時に「10回」に設定される場合であっても、システムの立ち上げ直後など、割込記録テーブル220の作成開始直後では、「10回」には満たない。計測部72は、平均回数225を、初期値「1回」から順次、インクリメントしてゆくことにより、平均時間間隔224を初回から計算することが可能となる。平均回数225が「1回」である時には、平均時間間隔224は最新時間間隔223と同一である。   Each time a new interrupt occurs, the measurement unit 72 calculates a new average time interval 224 based on the average time interval 224, the average number of times 225, and the time when the new interrupt occurs. Even if the average number of times 225 is set to “10 times” during steady operation, it is less than “10 times” immediately after the start of creation of the interrupt record table 220, such as immediately after the system is started up. The measurement unit 72 can calculate the average time interval 224 from the first time by sequentially incrementing the average count 225 from the initial value “1”. When the average count 225 is “1”, the average time interval 224 is the same as the latest time interval 223.

なお、平均時間間隔224は、過去の一定回数分の割り込みの時間間隔の平均値である必要はなく、過去の全ての割り込みの時間間隔の平均値であってもよい。この場合には、平均回数225は、割り込みが発生する毎に、際限なく「1」ずつインクリメントされる。   Note that the average time interval 224 does not have to be an average value of interrupt time intervals for the past certain number of times, and may be an average value of time intervals of all past interrupts. In this case, the average count 225 is incremented by “1” indefinitely every time an interrupt occurs.

割込記録テーブル220を管理する計測部72は、図6に例示する特定の周期的割り込みが発生したことを検知する。例えば、計測部72は、割込コントローラ55からCPU1などの演算処理装置に、割込信号が伝えられたことを検知することにより、特定の割込が発生したことを検知する。或いは、OS100などのソフトウェアが、対象デバイス、すなわち情報処理装置1000の装置要素からの割り込みを判別して、対応付けられる割り込み処理を行う時に、システム時刻或いはハードウェアタイマのクロック値を取得し、これらの情報をOS100の一部である計測部72に通知するようにしてもよい。   The measuring unit 72 that manages the interrupt recording table 220 detects that a specific periodic interrupt illustrated in FIG. 6 has occurred. For example, the measurement unit 72 detects that a specific interrupt has occurred by detecting that an interrupt signal has been transmitted from the interrupt controller 55 to an arithmetic processing device such as the CPU 1. Alternatively, when software such as the OS 100 discriminates an interrupt from the target device, that is, an apparatus element of the information processing apparatus 1000, and performs an associated interrupt process, the system time or the hardware timer clock value is acquired. May be notified to the measurement unit 72 which is a part of the OS 100.

時間予測部102が有する反復割込予測部73は、図6の各割り込み内容221について、例えば、最新時間間隔223と直前割込時刻226とを参照することによって、最も近い将来に発生する可能性のある割り込みの時刻を探し当て、これと現在時刻との差を予測時間とする。反復割込予測部73は、最新時間間隔223の代わりに、平均時間間隔224を用いても良い。   The repetitive interrupt predicting unit 73 included in the time predicting unit 102 may occur in the nearest future by referring to the latest time interval 223 and the immediately preceding interrupt time 226 for each interrupt content 221 in FIG. The time of an interrupt is detected, and the difference between this and the current time is taken as the predicted time. The iterative interrupt prediction unit 73 may use the average time interval 224 instead of the latest time interval 223.

また、システムの動作状況によって、割り込みが無効に設定されている場合がある。状態222は、割込内容221毎に、割り込みが無効に設定されているか否かを表示する情報である。例えば、割り込みコントローラ55に対して、割り込みをマスクするように設定がなされていると、マスクされた割り込みは受け付けられない。マスクされた割り込みに対しては、状態222として「無効」が記録される。この場合、OS100内の不図示の部分が、割込コントローラ55の設定状態を検知し、その状態を状態222に記録することが可能である。   Depending on the system operating status, interrupts may be disabled. The state 222 is information for displaying whether or not the interrupt is set to be invalid for each interrupt content 221. For example, if the interrupt controller 55 is set to mask an interrupt, the masked interrupt is not accepted. For the masked interrupt, “invalid” is recorded as the state 222. In this case, a portion (not shown) in the OS 100 can detect the setting state of the interrupt controller 55 and record the state in the state 222.

また、割込コントローラ55へのマスク設定によることなく、各割り込み内容221に対する有効/無効の設定を、OS100などのソフトウェアで行うことも可能である。この場合には、当該設定を行うOS100等の部分が、設定された内容を状態222に記録することが可能である。   In addition, it is possible to set validity / invalidity for each interrupt content 221 by software such as the OS 100 without using a mask setting in the interrupt controller 55. In this case, a part such as the OS 100 that performs the setting can record the set content in the state 222.

反復割込予測部73は、予測時間を取得する際に、状態222をも参照する。反復割込予測部73は、状態222が「無効」に設定されていない割込内容221についてのみ、最新時間間隔223等のデータを参照する。それにより、反復割込予測部73は、より正確に予測時間を取得することが可能となる。   The iterative interrupt prediction unit 73 also refers to the state 222 when acquiring the prediction time. The iterative interrupt prediction unit 73 refers to data such as the latest time interval 223 only for the interrupt contents 221 in which the state 222 is not set to “invalid”. As a result, the iterative interrupt prediction unit 73 can acquire the prediction time more accurately.

なお、反復割込予測部73は、割込記録テーブル220から、省電力モードが解除されるまでの時間の代わりに、省電力モードから通常モードに復帰するまでの時間(後述する図7のTu+Ts+Td)を、予測時間として取得することも可能である。割込記録テーブル220に記録される直前割込時刻226の代わりに、割り込み後に、通常モードへの復帰が行われて、所定のデバイス(情報処理装置1000の装置要素)が動作を開始する時刻を記録することが可能である。この場合には、反復割込予測部73は、直前割込時刻226に基づいて、省電力モードから通常モードに復帰するまでの時間を、予測時間として取得することができる。   Note that the iterative interrupt predicting unit 73 determines from the interrupt recording table 220 the time to return to the normal mode from the power saving mode instead of the time until the power saving mode is canceled (Tu + Ts + Td in FIG. 7 described later). ) Can be acquired as the predicted time. Instead of the previous interrupt time 226 recorded in the interrupt recording table 220, the time at which a predetermined device (apparatus element of the information processing apparatus 1000) starts operating after interruption is restored. It is possible to record. In this case, the iterative interrupt predicting unit 73 can acquire the time until returning from the power saving mode to the normal mode based on the previous interrupt time 226 as the predicted time.

図2に戻って、時間予測部102は、例えば、タイマイベント予測部74が得た予測時間を第1の候補とし、反復割込予測部73が得た予測時間を第2の候補として、より現在に近い候補を、予測時間としてモード切替判定部103に通知する。   Returning to FIG. 2, the time prediction unit 102 uses, for example, the prediction time obtained by the timer event prediction unit 74 as a first candidate and the prediction time obtained by the iterative interrupt prediction unit 73 as a second candidate. A candidate close to the present is notified to the mode switching determination unit 103 as a predicted time.

モード切替判定部103は、電力消費情報管理部101が管理する管理情報と時間予測部102が予測した予測時間とに基づいて、現在の通常モードを省電力モードに切り替えるか否かを判定する。電力消費情報管理部101は、自身が管理する電力消費情報テーブル170を、モード切替判定部103へ伝える。   The mode switching determination unit 103 determines whether to switch the current normal mode to the power saving mode based on the management information managed by the power consumption information management unit 101 and the predicted time predicted by the time prediction unit 102. The power consumption information management unit 101 notifies the mode switching determination unit 103 of the power consumption information table 170 managed by itself.

図7は、モード切替判定部103の動作を説明するグラフであり、動作モードの切替えに伴う、消費電力の推移を例示している。図7において、縦軸は消費電力(mW)を示しており、横軸は時間を示している。システムの動作モードが通常モードであるときの消費電力は、Wnの高さにある。省電力モードへの切り替え要求が、時刻251で発生すると、通常は省電力モードに切り替える処理、すなわち移行処理を行うために消費電力が高くなる。これは、第1には、通常において、通常モードから省電力モードに切り替わる直前の通常モードでは、システムは多くの場合、大きな処理を抱えていないからである。第2に、省電力モードに切り替える処理として、種々のデバイス(すなわち、装置要素)の設定を変更するための処理を行う必要があり、この処理に高い電力が消費されるからである。図7の例では、省電力モードに切り替えるために、時刻251から時刻252までの時間Tu分だけ処理時間を要し、その間の消費電力Wuは、省電力モードに切り替える前のWnより引き上げられる。   FIG. 7 is a graph for explaining the operation of the mode switching determination unit 103, and illustrates the transition of the power consumption accompanying the switching of the operation mode. In FIG. 7, the vertical axis indicates power consumption (mW), and the horizontal axis indicates time. The power consumption when the operation mode of the system is the normal mode is at the height of Wn. When a request for switching to the power saving mode is generated at time 251, power consumption increases because a process for switching to the power saving mode, that is, a transition process is performed. This is because, firstly, in the normal mode immediately before switching from the normal mode to the power saving mode, the system usually does not have a large process. Secondly, as processing for switching to the power saving mode, it is necessary to perform processing for changing settings of various devices (that is, apparatus elements), and high power is consumed for this processing. In the example of FIG. 7, in order to switch to the power saving mode, a processing time is required for the time Tu from time 251 to time 252, and the power consumption Wu during that time is raised from Wn before switching to the power saving mode.

時刻252で、省電力モードに切り替えるための前処理である移行処理が完了し、省電力モードに切り替わると、消費電力はWsの水準まで低下する。消費電力Wsは、通常モードでの消費電力Wnよりも低い。省電力モードでの動作は、電力消費がWdの水準を維持したままで、省電力モード解除の割り込みが発生する時刻253まで継続期間Tsにわたって継続する。時刻253で省電力モード解除の割り込みが発生すると、システムは省電力モードから復帰する処理、すなわち復帰処理を行う。復帰処理では、移行処理と同様に、種々のデバイスの設定を変更する必要がある。その処理に要する電力が消費されるので、復帰処理に要する消費電力Wdは、消費電力Wuと同等ないしそれに近い水準まで上昇する。   When the transition process, which is the pre-process for switching to the power saving mode, is completed at time 252 and the mode is switched to the power saving mode, the power consumption decreases to the level of Ws. The power consumption Ws is lower than the power consumption Wn in the normal mode. The operation in the power saving mode continues for the duration Ts until the time 253 when the interruption of the power saving mode is generated while maintaining the power consumption at the level of Wd. When an interrupt for canceling the power saving mode occurs at time 253, the system performs processing to return from the power saving mode, that is, recovery processing. In the return process, it is necessary to change the settings of various devices as in the migration process. Since the power required for the processing is consumed, the power consumption Wd required for the return processing increases to a level that is equal to or close to the power consumption Wu.

省電力モードから通常モードへの復帰処理のために、時刻253から時刻254までの時間Tdにわたる処理時間が必要とされる。時刻254で、通常モードの前処理としての復帰処理が完了すると、動作モードは通常モードに復帰する。   Processing time over time Td from time 253 to time 254 is required for the process of returning from the power saving mode to the normal mode. When the return process as the pre-process for the normal mode is completed at time 254, the operation mode returns to the normal mode.

上述した通り、省電力モードへの切替えを行うには、省電力モードに切り替えるための処理時間Tuと、省電力モードから復帰するための処理時間Tdとが必要となる。このため、必ずしも省電力モードに切り替えた方が、有利であるとは限らない。場合によっては、省電力モードに切り替えずに、通常動作モードを維持した方がよい場合もある。   As described above, switching to the power saving mode requires the processing time Tu for switching to the power saving mode and the processing time Td for returning from the power saving mode. For this reason, it is not always advantageous to switch to the power saving mode. In some cases, it is better to maintain the normal operation mode without switching to the power saving mode.

モード切替判定部103は、省電力モードへの切り替え要求を通知された時に、上述した状況に基づいて省電力モードに切り替えるか否かを判断する。なお、モード切替判定部103は、モード切替指示部75からの切替え要求を直接に受けても良いが、電力消費情報管理部101又は時間予測部102を通じて、間接的に通知を受けても良い。図2は、後者を例示している。   When the switching request to the power saving mode is notified, the mode switching determination unit 103 determines whether to switch to the power saving mode based on the above-described situation. The mode switching determination unit 103 may directly receive a switching request from the mode switching instruction unit 75, but may indirectly receive a notification through the power consumption information management unit 101 or the time prediction unit 102. FIG. 2 illustrates the latter.

以下、モード切替判定部103の切り替え判断の基準と判断手順に関して、いくつかの例を説明する。まず、モード切替判定部103が、処理時間に基づいて判断する例を示す。   Hereinafter, some examples will be described with respect to the switching determination criterion and determination procedure of the mode switching determination unit 103. First, an example in which the mode switching determination unit 103 makes a determination based on the processing time is shown.

省電力モードに切り替えるための処理時間Tuが、切替え要求の発生から省電力モードが解除されるまでの時間Tu+Tsより長い場合には、省電力モードに切り替わってから省電力モードが解除されるまでの時間、すなわち継続期間Tsが存在しないことを意味する。この場合には、省電力モードでの動作を実現し得ないままで、動作モードは通常モードに復帰する。そのため、実施した省電力モードに切り替える移行処理と省電力モードから復帰するための復帰処理に要した時間が無駄になる。また、通常モードの動作が維持されておれば即座に応答して実行し得た処理が、移行処理や復帰処理を行ったことにより応答に遅延が発生したために、遅れる可能性がある。   When the processing time Tu for switching to the power saving mode is longer than the time Tu + Ts from the occurrence of the switching request to the cancellation of the power saving mode, the time until the power saving mode is canceled after switching to the power saving mode. It means that there is no time, ie duration Ts. In this case, the operation mode returns to the normal mode until the operation in the power saving mode cannot be realized. Therefore, the time required for the transition process for switching to the implemented power saving mode and the restoration process for returning from the power saving mode is wasted. Further, if the operation in the normal mode is maintained, a process that can be immediately responded and executed may be delayed because a delay occurs in the response due to the transition process or the return process.

そこで、モード切替判定部103は、時間予測部102から受け取った予測時間(Tu+Ts、又はTu+Ts+Td)と、移行処理のための処理時間Tu或いは復帰処理のための処理時間Tdとの関係に基づいて、省電力モードに切り替えるか否かを判定する。モード切替判定部103は、例えば、予測時間がTu+Tsとして得られる場合に、予測時間が処理時間Tuより短い場合は、省電力モードへの切り替えを行わないと判定する。また、モード切替判定部103は、予測時間がTu+Ts+Tdとして得られる場合に、予測時間が処理時間Tuと処理時間Tdの和より短い場合は、省電力モードへの切り替えを行わないと判定する。別の例では、モード切替判定部103は、処理時間Tu或いは処理時間の和Tu+Tdに、ある正の定数を加算した値以上となるほどに、予測時間が十分長いと判断した場合に限り、省電力モードに切り替えるべきと判定する。   Therefore, the mode switching determination unit 103 is based on the relationship between the prediction time (Tu + Ts or Tu + Ts + Td) received from the time prediction unit 102 and the processing time Tu for transition processing or the processing time Td for return processing. It is determined whether or not to switch to the power saving mode. For example, when the predicted time is obtained as Tu + Ts, the mode switching determination unit 103 determines not to switch to the power saving mode if the predicted time is shorter than the processing time Tu. Further, when the predicted time is obtained as Tu + Ts + Td, the mode switching determining unit 103 determines not to switch to the power saving mode if the predicted time is shorter than the sum of the processing time Tu and the processing time Td. In another example, only when the mode switching determination unit 103 determines that the prediction time is sufficiently long to be equal to or greater than the value obtained by adding a certain positive constant to the processing time Tu or the sum of processing times Tu + Td. It is determined that the mode should be switched.

以上の例は、以下のように言い換えることも可能である。モード切替判定部103は、まず省電力モードでシステムが動作することが可能な時間、すなわち継続期間Tsを算出する。継続期間Tsは、予測時間がTu+Tsとして得られる場合には、予測時間から処理時間Tuを差し引くことにより得られ、予測時間がTu+Ts+Tdとして得られる場合には、予測時間から処理時間Tu+Tdを差し引くことにより得られる。   The above example can be paraphrased as follows. The mode switching determination unit 103 first calculates a time during which the system can operate in the power saving mode, that is, a duration Ts. The duration Ts is obtained by subtracting the processing time Tu from the prediction time when the prediction time is obtained as Tu + Ts, and is subtracted from the prediction time by the processing time Tu + Td when the prediction time is obtained as Tu + Ts + Td. can get.

モード切替判定部103は、電力消費情報管理部101が通知する電力消費情報テーブル170を参照することにより、処理時間Tu及びTdを取得することができる。なお、電力消費情報管理部101がモード切替判定部103へ電力消費情報テーブル170を伝える代わりに、モード切替判定部103が電力消費情報管理部101が管理する電力消費情報テーブル170を参照してもよい。   The mode switching determination unit 103 can acquire the processing times Tu and Td by referring to the power consumption information table 170 notified by the power consumption information management unit 101. Instead of the power consumption information management unit 101 transmitting the power consumption information table 170 to the mode switching determination unit 103, the mode switching determination unit 103 may refer to the power consumption information table 170 managed by the power consumption information management unit 101. Good.

モード切替判定部103は、例えば、継続期間Tsが負の値である場合は、省電力モードへの切替えを行わないものと判定し、正の値である場合には切替えを行うものと判定する。別の例では、モード切替判定部103は、継続期間Tsが、与えられた正の定数以上である場合には、切替えを行うものと判定し、当該正の定数未満である場合には、切替えを行わないものと判定する。言い換えると、モード切替判定部103は、継続期間Tsが、十分に長い場合に限り、切替えを行うものと判定する。   For example, the mode switching determination unit 103 determines that switching to the power saving mode is not performed when the duration Ts is a negative value, and determines that switching is performed when the duration Ts is a positive value. . In another example, the mode switching determination unit 103 determines that switching is performed when the duration Ts is greater than or equal to a given positive constant, and switches when the duration Ts is less than the positive constant. Is determined not to be performed. In other words, the mode switching determination unit 103 determines that switching is performed only when the duration Ts is sufficiently long.

次に、モード切替判定部103が、電力消費量に基づいて判断する例を示す。まず、モード切替判定部103は、時間予測部102から受け取った予測時間から、継続期間Tsを算出する。モード切替判定部103は、更に、省電力モードに移行させる移行処理に要する電力消費量(Wu×Tu)、及び省電力モードから通常動作に復帰させる復帰処理に要する電力消費量(Wd×Td)を、電力消費情報テーブル170から取得する。或いは、モード切替判定部103は、移行処理に要する消費電力Wuと、移行処理に要する処理時間Tuとを取得することにより、移行処理に要する電力消費量(Wu×Tu)を算出しても良い。同様に、モード切替判定部103は、復帰処理に要する消費電力Wdと、復帰処理に要する処理時間Tdとを取得することにより、復帰処理に要する電力消費量(Wd×Td)を算出しても良い。   Next, an example is shown in which the mode switching determination unit 103 makes a determination based on the power consumption. First, the mode switching determination unit 103 calculates the duration Ts from the predicted time received from the time prediction unit 102. The mode switching determination unit 103 further includes a power consumption (Wu × Tu) required for the transition process for shifting to the power saving mode and a power consumption (Wd × Td) required for the return process for returning to the normal operation from the power saving mode. Is obtained from the power consumption information table 170. Alternatively, the mode switching determination unit 103 may calculate the power consumption (Wu × Tu) required for the transition process by acquiring the power consumption Wu required for the transition process and the processing time Tu required for the transition process. . Similarly, the mode switching determination unit 103 calculates the power consumption (Wd × Td) required for the return process by acquiring the power consumption Wd required for the return process and the processing time Td required for the return process. good.

モード切替判定部103は、更に、省電力モードで動作する継続期間Tsにおける消費電力Wsを、電力消費情報テーブル170から取得する。モード切替判定部103は、継続期間Tsと消費電力Wsとから、継続期間Tsにおける電力消費量(Ws×Tu)を算出する。それにより、モード切替判定部103は、省電力モードへの切替えを行った場合に、Tu+Ts+Tdの全期間にわたる全電力消費量(Wu×Tu+Ws×Ts+Wd×Td)を、3種の電力消費量の和として算出する。   The mode switching determination unit 103 further acquires the power consumption Ws during the duration Ts that operates in the power saving mode from the power consumption information table 170. The mode switching determination unit 103 calculates the power consumption (Ws × Tu) in the duration Ts from the duration Ts and the power consumption Ws. As a result, when switching to the power saving mode, the mode switching determination unit 103 determines the total power consumption (Wu × Tu + Ws × Ts + Wd × Td) over the entire period of Tu + Ts + Td as the sum of the three types of power consumption. Calculate as

更に、モード切替判定部103は、通常モードで動作した場合の消費電力Wnを、電力消費情報テーブル170から取得する。消費電力Wnについては、定数としてモード切替判定部103に、あらかじめ与えられている等、周知技術の範囲で様々な取得形態があり得る。モード切替判定部103は、消費電力Wnに基づいて、動作モードの切替えが行われない場合の、上記全期間Tu+Ts+Tdにわたる全電力消費量(Wn×(Tu+Ts+Td))を算出する。   Further, the mode switching determination unit 103 acquires the power consumption Wn when operating in the normal mode from the power consumption information table 170. Regarding the power consumption Wn, there are various acquisition forms within the range of a well-known technique, such as being given to the mode switching determination unit 103 in advance as a constant. Based on the power consumption Wn, the mode switching determination unit 103 calculates the total power consumption (Wn × (Tu + Ts + Td)) over the entire period Tu + Ts + Td when the operation mode is not switched.

以上の結果に基づいて、モード切替判定部103は、省電力モードへ切り替えた場合と、切り替えない場合との間で、全電力消費量を比較し、その結果に基づいて、省電力モードへの切替えを行うか否かを判定する。例えば、省電力モードへ切り替えた場合の全電力消費量が、切替えない場合の全電力消費量よりも大きい場合には、省電力モードに切り替えることによる電力節減効果が得られないので、モード切替判定部103は、省電力モードへの切替えを行わないと判定する。逆に、省電力モードへ切り替えた場合の全電力消費量が、切替えない場合の全電力消費量よりも小さい場合には、省電力モードに切り替えることによる電力節減効果が得られるので、モード切替判定部103は、省電力モードへの切替えを行なうと判定する。   Based on the above results, the mode switching determination unit 103 compares the total power consumption between the case where the mode is switched to the power saving mode and the case where the mode is not switched. It is determined whether or not to perform switching. For example, if the total power consumption when switching to the power saving mode is greater than the total power consumption when not switching, the power saving effect cannot be obtained by switching to the power saving mode. The unit 103 determines not to switch to the power saving mode. Conversely, if the total power consumption when switching to the power saving mode is smaller than the total power consumption when not switching, a power saving effect can be obtained by switching to the power saving mode. Unit 103 determines to switch to the power saving mode.

別の例では、モード切替判定部103は、上記比較の結果、省電力モードへ切り替えた場合の全電力消費量が、切替えない場合の全電力消費量から、与えられたあるマージン(正数)を差し引いた値以下である場合に限り、省電力モードへの切替えを行うと判定する。これにより、切替えに伴って、応答の遅延が発生する不利益をも補って余りある省電力効果が得られる場合に限り、省電力モードへの切替えを行うことができる。   In another example, as a result of the comparison, the mode switching determination unit 103 determines that the total power consumption when switching to the power saving mode is a given margin (positive number) from the total power consumption when not switching. It is determined that switching to the power saving mode is performed only when the value is equal to or less than the value obtained by subtracting. As a result, the switching to the power saving mode can be performed only when the power saving effect that more than compensates for the disadvantage of response delay accompanying the switching can be obtained.

モード切替判定部103は、判定の結果をモード切替実行部104へ伝える。モード切替判定部103は、省電力モードへの切替えを行うと判定した場合にのみ、その旨をモード切替実行部104へ通知しても良い。   The mode switching determination unit 103 informs the mode switching execution unit 104 of the determination result. The mode switching determination unit 103 may notify the mode switching execution unit 104 only when it is determined to switch to the power saving mode.

モード切替実行部104は、モード切替判定部103の判定に従って、動作モードの切替えを行い、それにより各動作モードを実現する。すなわち、モード切替実行部104は、モード切替判定部103から省電力モードへの切り替えを通知されると、システムの動作モードを省電力モードに切り替える処理を行う。モード切替実行部104は、例えば、省電力モードテーブル150を参照することにより、移行すべき省電力モードに対応する操作を、各装置要素に対して行う。モード切替実行部104は、省電力モードが対象としている各装置要素に対して、省電力処理を適用するために、省電力モードテーブル150に記録されている操作に付随した様々な処理をも、所定の手順で行う。   The mode switching execution unit 104 switches the operation mode according to the determination of the mode switching determination unit 103, thereby realizing each operation mode. That is, when the mode switching execution unit 104 is notified of the switching to the power saving mode from the mode switching determination unit 103, the mode switching execution unit 104 performs a process of switching the system operation mode to the power saving mode. For example, the mode switching execution unit 104 refers to the power saving mode table 150 to perform an operation corresponding to the power saving mode to be transferred to each device element. The mode switching execution unit 104 performs various processes associated with operations recorded in the power saving mode table 150 in order to apply the power saving process to each device element targeted by the power saving mode. Perform in a predetermined procedure.

一般に、各装置要素の電源を切ったり、待機モードにしたり、停止させたりするような省電力処置を行う際には、次に省電力モードから通常動作に復帰して正常に動作させるために、通常動作の際に保持している一時情報や揮発性のデータなどを保存する処理が必要になる。また、接続されている周辺デバイスに対しても、電源が切られることや待機モードにされることや停止することを通知し、データを送受信できなくなることに対処させることがある。   In general, when performing power-saving measures such as turning off the power of each device element, setting it to standby mode, or stopping it, in order to return to normal operation from power-saving mode and then operate normally, Processing to store temporary information and volatile data held during normal operation is required. In addition, the connected peripheral device may be notified that the power is turned off, in the standby mode, or stopped, so that data cannot be transmitted or received.

例えば、揮発性の外部メモリ(図1には不図示)の電源を切る場合には、まず外部メモリが保持しているデータの中で外部メモリ上でのみ書き込みがされた状態のデータを、元の記憶装置の位置に反映したり、或いは別の一時記憶装置に移動したりしなければならない。また、これまで通電していた際に、接続されている別の周辺デバイスから定期的に受けていたリフレッシュ信号や活性化信号をマスクしなければならない場合もある。   For example, when the power of a volatile external memory (not shown in FIG. 1) is turned off, first of all data stored in the external memory is written in the external memory. It must be reflected in the position of the storage device or moved to another temporary storage device. In some cases, it may be necessary to mask a refresh signal or an activation signal that has been periodically received from another connected peripheral device when power is applied.

さらに、各装置要素の状態を変更する場合には、各装置要素に対して所定の設定を実施した後に各装置要素の状態が安定化するまで待つ必要もある。例えば、CPUクロック周波数を低下させることに伴って、供給する電圧を低下させる場合、電圧の供給源が電圧を変更している時間や電圧が安定化するまでの時間にCPU1を停止させなければならない。   Further, when changing the state of each device element, it is necessary to wait until the state of each device element is stabilized after performing a predetermined setting for each device element. For example, when the voltage to be supplied is reduced as the CPU clock frequency is reduced, the CPU 1 must be stopped during the time when the voltage supply source changes the voltage or the time until the voltage stabilizes. .

モード切替実行部104は、上記のような処理を含めて、省電力モードを実施するための所定の処理を実行する。   The mode switching execution unit 104 executes predetermined processing for implementing the power saving mode, including the above processing.

以上のように構成された省電力処理装置10について、図8のフローチャートを参照しつつその動作を述べる。省電力処理装置10は、電源が立ち上げられるなどにより処理が開始されると、電力消費情報管理部101が電力消費情報テーブル170等の管理情報を管理する。同時に、時間予測部102は割込記録テーブル220の管理を行う(以上、S101)。   The operation of the power saving processing apparatus 10 configured as described above will be described with reference to the flowchart of FIG. In the power saving processing apparatus 10, when processing is started, for example, when a power supply is turned on, the power consumption information management unit 101 manages management information such as the power consumption information table 170. At the same time, the time prediction unit 102 manages the interrupt recording table 220 (S101).

次に、電力消費を抑えるための省電力モードへの切り替え要求、すなわち切替命令が発生すると、省電力処理装置10は、ステップS102以下の処理を実行する。ステップS101の処理は、ステップS102以下の処理と並行して引き続き実行される。   Next, when a request for switching to the power saving mode for suppressing power consumption, that is, a switching command is generated, the power saving processing device 10 executes the processing from step S102 onward. The process of step S101 is continuously executed in parallel with the process of step S102 and subsequent steps.

ステップS102では、時間予測部102が予測時間を算出する。次に、モード切替判定部103は、電力消費情報管理部101から電力消費情報テーブル170等の管理情報を取得し、時間予測部102から予測時間を取得する(S103)。次に、モード切替判定部103は、省電力モードへの切替えを行う場合と行わない場合との間で、処理時間又は全電力消費量の比較を行う(S104)。続いて、モード切替判定部103は、比較の結果に基づいて、省電力モードへの切替えが有効であるか否かを判定する(S105)。続いて、モード切替実行部104は、切替えが有効であると判定された場合(S105でYes)には、省電力モードへの切替えを行う(S106)。   In step S102, the time prediction unit 102 calculates a prediction time. Next, the mode switching determination unit 103 acquires management information such as the power consumption information table 170 from the power consumption information management unit 101, and acquires a predicted time from the time prediction unit 102 (S103). Next, the mode switching determination unit 103 compares the processing time or the total power consumption between when switching to the power saving mode and when not switching (S104). Subsequently, the mode switching determination unit 103 determines whether switching to the power saving mode is effective based on the comparison result (S105). Subsequently, when it is determined that the switching is valid (Yes in S105), the mode switching execution unit 104 switches to the power saving mode (S106).

以上のように、本発明の第1の実施形態にかかる省電力処理装置10によれば、省電力モードに切り替える際のオーバーヘッドとなる処理時間や電力消費量も考慮に入れて、省電力モードに切り替えるかどうかを判断することにより、より有利な省電力制御、或いはより確度の高い省電力制御を達成することが可能になる。   As described above, according to the power saving processing apparatus 10 according to the first embodiment of the present invention, the processing time and power consumption that are overhead when switching to the power saving mode are also taken into consideration, and the power saving mode is set. By determining whether or not to switch, it is possible to achieve more advantageous power saving control or more accurate power saving control.

(実施の形態2)
前述した実施の形態1では、時間予測部102がデバイス、すなわち装置要素の使用時刻を予測する一つの方式として、タイマイベントを検索して、最寄りのタイマイベントが発生する時刻までを、省電力モード動作の可能な時間としていた。しかし、あるタイマイベントが発生した場合に、必ずしもそのタイマイベントが省電力処理を適用している装置を通常動作に復帰させて使用するとは限らない。
(Embodiment 2)
In the first embodiment described above, as one method in which the time prediction unit 102 predicts the use time of a device, that is, an apparatus element, the timer event is searched and the power saving mode is set up to the time when the nearest timer event occurs. It was possible time for operation. However, when a certain timer event occurs, the device to which the timer event applies power saving processing is not necessarily used by returning to normal operation.

例えば、あるタイマイベントによって、外部メモリからコードをロードして演算処理装置、すなわちCPU1内で所定の処理を行うだけで、ネットワークインタフェースすなわち通信装置34を使用しない可能性は十分にある。そのような場合、例えば図3に示す識別番号「4」に対応する「ネットワークインタフェースを電源OFF」する省電力モードは、そのタイマイベントによって省電力モードを解除する必要がない。   For example, there is a possibility that a network interface, that is, the communication device 34 is not used only by loading a code from an external memory and performing a predetermined process in the arithmetic processing unit, that is, the CPU 1 by a certain timer event. In such a case, for example, the power saving mode of “powering off the network interface” corresponding to the identification number “4” shown in FIG. 3 does not need to be canceled by the timer event.

従って、タイマイベントによっては、所定のデバイスのみを使用する、或いは所定のデバイスを使用しないものがあり、それらを識別することができれば、要求された省電力モードに対して省電力モード動作の可能な時間を正確に予測することができる。   Therefore, some timer events use only a predetermined device or do not use a predetermined device, and if they can be identified, it is possible to perform a power saving mode operation for a requested power saving mode. Time can be predicted accurately.

時間予測部102が、かかる識別を行いつつ、タイマイベントを利用してデバイスの使用時刻を予測する動作に関して、図9を参照しつつ説明する。図9は、実施の形態1における図5に対応するもので、実施の形態2によるタイマリスト管理キューによってタイマイベントを管理する形態を模式的に描いた説明図である。このタイマリスト管理キュー201Aは、図2において、タイマリスト管理キュー201に置き換えられるものである。   An operation in which the time prediction unit 102 predicts the use time of a device using a timer event while performing such identification will be described with reference to FIG. FIG. 9 corresponds to FIG. 5 in the first embodiment, and is an explanatory diagram schematically illustrating a mode in which timer events are managed by the timer list management queue according to the second embodiment. The timer list management queue 201A is replaced with the timer list management queue 201 in FIG.

タイマリスト管理キュー201Aは、各タイマイベントに対応するデバイス使用情報を管理している。すなわち、各タイマイベントには、図5にも示されている実行時刻と実行ハンドラの他に、デバイス使用情報が付随している。例えば、タイマイベントAには、デバイス情報として、外部メモリを使用しないという情報とネットワークインタフェースを使用しないという情報301が管理されている。また、タイマイベントBには、デバイス情報として、ネットワークインタフェースを使用しないという情報302が管理されている。   The timer list management queue 201A manages device usage information corresponding to each timer event. That is, each timer event is accompanied by device usage information in addition to the execution time and execution handler shown in FIG. For example, in the timer event A, information that the external memory is not used and information 301 that the network interface is not used are managed as device information. In the timer event B, information 302 that the network interface is not used is managed as device information.

タイマイベント登録部70(図2)は、タイマイベントをタイマリスト管理キュー201Aに登録する際に、そのタイマイベントの仕様に基づいて、デバイス使用情報301や302を、あらかじめ設定することが可能である。また、タイマイベントの実行時にそのタイマイベントがどのデバイスにアクセスしたかを時間予測部102が記憶し、その情報に基づいて、時間予測部102又はタイマイベント登録部70がデバイスの使用情報を、タイマリスト管理キュー201Aに設定してもよい。   When registering a timer event in the timer list management queue 201A, the timer event registration unit 70 (FIG. 2) can preset device usage information 301 and 302 based on the specification of the timer event. . In addition, the time prediction unit 102 stores which device the timer event has accessed at the time of execution of the timer event, and based on the information, the time prediction unit 102 or the timer event registration unit 70 stores the device usage information in the timer It may be set in the list management queue 201A.

仮に、図3に示した省電力モードテーブル150において、識別番号「1」に対応する「外部メモリをスリープ」する省電力モードが、切替え先として要求されている場合、時間予測部102は、図9のタイマリスト管理キュー201Aが管理するタイマイベントを検索し、タイマイベントAのデバイス使用情報301を参照して、タイマイベントAが外部メモリを使用しないという情報を得る。すなわち、このタイマイベントAは省電力モード「外部メモリをスリープ」から復帰する必要のないタイマイベントであると判断する。   If, in the power saving mode table 150 shown in FIG. 3, the power saving mode for “sleeping the external memory” corresponding to the identification number “1” is requested as the switching destination, the time prediction unit 102 The timer event managed by the timer list management queue 201A of No. 9 is searched, and the device usage information 301 of the timer event A is referred to obtain information that the timer event A does not use the external memory. That is, the timer event A is determined to be a timer event that does not need to return from the power saving mode “external memory sleep”.

時間予測部102は、管理されているタイマイベントを更に検索し、タイマイベントBのデバイス使用情報302を参照して、タイマイベントBがネットワークを使用しないという情報を得る。図9の例のように、使用されないデバイスがデバイス使用情報に登録される場合には、時間予測部102は、タイマイベントBは外部メモリを使用する可能性があると判断して、タイマイベントBに登録されている実行時刻303を参照する。時間予測部102は、実行時刻303をデバイス使用時刻とみなし、システムが管理しているシステム時刻との差を算出することにより、省電力モード動作が解除されるまでの時間(Tu+Ts)を得る。時間予測部102は、算出した時間を予測時間として、モード切替判定部103に通知する。   The time prediction unit 102 further searches for a managed timer event, refers to the device usage information 302 of the timer event B, and obtains information that the timer event B does not use the network. As in the example of FIG. 9, when a device that is not used is registered in the device usage information, the time prediction unit 102 determines that the timer event B may use an external memory, and the timer event B Reference is made to the execution time 303 registered in. The time prediction unit 102 regards the execution time 303 as the device use time, and calculates the difference from the system time managed by the system to obtain the time (Tu + Ts) until the power saving mode operation is canceled. The time prediction unit 102 notifies the mode switching determination unit 103 of the calculated time as the predicted time.

さらに、別の例として、図3に示した省電力モードテーブル150において、識別番号「4」に対応する「ネットワークインタフェースを電源OFF」する省電力モードが、切替え先として要求されている場合を採り上げる。この場合には、タイマイベントA及びタイマイベントBのデバイス使用情報301及び302には、ネットワークインタフェースを使用しないという情報が含まれているため、時間予測部102は、タイマイベントCのデバイス使用情報を参照する。タイマイベントCのようにデバイス使用情報が存在しない場合には、時間予測部102は、全てのデバイスを使用する可能性があると判断して、タイマイベントCの実行時刻304に基づいて省電力モード動作の可能な時間を予測する。   Furthermore, as another example, the case where the power saving mode for turning off the network interface corresponding to the identification number “4” is requested as the switching destination in the power saving mode table 150 shown in FIG. . In this case, since the device usage information 301 and 302 of the timer event A and the timer event B includes information that the network interface is not used, the time prediction unit 102 uses the device usage information of the timer event C as the device usage information. refer. When the device usage information does not exist as in the timer event C, the time prediction unit 102 determines that there is a possibility of using all devices, and based on the execution time 304 of the timer event C, the power saving mode Predict the possible time of action.

なお、図9では、タイマイベントに対応するデバイス使用情報として、特定のデバイスを使用しないという情報を例示したが、タイマリスト管理キュー201Aは、特定のデバイスを使用するという情報を管理してもよい。この場合、時間予測部102は、タイマイベントが使用するデバイスを記録したデバイス使用情報のうち、要求された省電力モードの実施に伴って省電力処理を適用するデバイスの一部を含むものが有るかどうかを判断する。そして、時間予測部102は、このようなデバイス使用情報が付随するタイマイベントの実行時刻を、デバイスを使用する時刻とみなし、省電力モード動作の可能な時間を算出する。   In FIG. 9, information indicating that a specific device is not used is exemplified as device usage information corresponding to a timer event. However, the timer list management queue 201A may manage information indicating that a specific device is used. . In this case, the time prediction unit 102 includes a part of the device usage information in which the device used by the timer event is recorded, including a part of the device to which the power saving process is applied in accordance with the execution of the requested power saving mode. Determine whether or not. Then, the time prediction unit 102 regards the execution time of the timer event accompanied by such device usage information as the time to use the device, and calculates the time during which the power saving mode operation can be performed.

次に、時間予測部102が、使用される装置を識別しつつ、デバイス使用時刻を周期的な割り込み処理に基づいて予測する場合の動作に関して、図10を参照しつつ説明する。図10は、実施の形態1における図6に対応するもので、実施の形態2による割込記録テーブル220Aを表形式で示す説明図である。この割込記録テーブル220Aは、図2において、割込記録テーブル220に置き換えられるものである。   Next, the operation when the time prediction unit 102 predicts the device use time based on the periodic interrupt process while identifying the device to be used will be described with reference to FIG. FIG. 10 corresponds to FIG. 6 in the first embodiment, and is an explanatory diagram showing the interrupt recording table 220A according to the second embodiment in a table format. This interrupt record table 220A is replaced with the interrupt record table 220 in FIG.

割込記録テーブル220Aには、図6の割込記録テーブル220と同様に、割り込み内容221、状態222、最新時間間隔223、平均時間間隔224、平均回数225、並びに直前割込時刻226が、互いに関連づけて記録されている。割込記録テーブル220Aには、割り込み内容221等に関連づけて、デバイス使用情報355が記録されている。   In the interrupt record table 220A, as in the interrupt record table 220 of FIG. 6, the interrupt contents 221, the state 222, the latest time interval 223, the average time interval 224, the average number of times 225, and the immediately preceding interrupt time 226 are mutually stored. It is recorded in association. Device usage information 355 is recorded in the interrupt recording table 220A in association with the interrupt content 221 and the like.

時間予測部102は、デバイス使用情報355を利用することにより、より正確にデバイスの使用時刻を予測することが可能となる。省電力モードによっては、実際に特定の割り込みが発生したことによって省電力モードの解除が行われないことも有り得る。なぜなら、全ての周期的な割り込み処理が、省電力モードによる省電力処理の適用を受けているデバイスを使用するとは限らないからである。そこで、時間予測部102は、現在に最も近いものと予測される周期的な割り込みの発生時刻を、次にデバイスを使用する時間とみなすのでなく、割り込み内容221ごとに管理されているデバイス使用情報355を利用する。時間予測部102は、それにより、要求された省電力モードに対して予測時間をより正確に取得することができる。   By using the device usage information 355, the time prediction unit 102 can predict the device usage time more accurately. Depending on the power saving mode, the power saving mode may not be canceled because a specific interrupt has actually occurred. This is because not all periodic interrupt processing uses a device that has been subjected to power saving processing in the power saving mode. Therefore, the time prediction unit 102 does not regard the time of occurrence of a periodic interrupt that is predicted to be closest to the present time as the next time to use the device, but device usage information managed for each interrupt content 221. 355 is used. Thereby, the time prediction unit 102 can more accurately obtain the predicted time for the requested power saving mode.

具体的には、上述したタイマイベントの場合と同様に、時間予測部102は、切り替えが要求された省電力モードが省電力処理の適用対象としている各デバイスに関して、周期的な割り込みがそのデバイスを使用するかどうかを、デバイス使用情報355によって判断する。デバイス使用情報355は、周期的な割り込みを実行する実行ハンドラに、あらかじめ設定しておくことが可能であり、それを時間予測部102が読み取ることが可能である。また、周期的な割り込みの実行時に、その周期的な割り込みがどのデバイスにアクセスしたかを時間予測部102が記憶し、その情報に基づいて時間予測部102がデバイス使用情報355を設定してもよい。   Specifically, as in the case of the timer event described above, the time predicting unit 102 determines that a periodic interrupt is applied to each device for which the power saving mode for which switching is requested is an application target of the power saving process. Whether or not to use the device is determined based on the device usage information 355. The device usage information 355 can be set in advance in an execution handler that executes a periodic interrupt, and the time prediction unit 102 can read it. Further, when the periodic interrupt is executed, the time prediction unit 102 stores which device the periodic interrupt has accessed, and the time prediction unit 102 sets the device usage information 355 based on the information. Good.

例えば、仮に図3の識別番号「1」に対応する「外部メモリをスリープ」する省電力モードが要求されている場合、時間予測部102は、図10の割込記録テーブル220Aを検索し、まず1番目の「タイマ割り込み」のデバイス使用情報355を参照して、外部メモリを使用しないという情報を得る。それにより、時間予測部102は、省電力モード「外部メモリをスリープ」が、タイマ割り込みによって解除されて通常モードに復帰しない、と判断することができる。   For example, if a power saving mode of “sleep external memory” corresponding to the identification number “1” in FIG. 3 is requested, the time prediction unit 102 searches the interrupt recording table 220A in FIG. With reference to the device usage information 355 of the first “timer interrupt”, information that the external memory is not used is obtained. Thereby, the time prediction unit 102 can determine that the power saving mode “sleep external memory” is canceled by the timer interrupt and does not return to the normal mode.

次に、時間予測部102は、図10の2番目の周期的割り込み「他CPUからの定期的な割り込み」のデバイス使用情報355を参照する。その結果、外部メモリを使用しないという情報がないので、時間予測部102は、2番目の周期的割り込みが外部メモリを使用すると判断することができる。すなわち、時間予測部102は、図10の2番目の周期的割り込みに対応する最新時間間隔223や平均時間間隔224が、省電力モード「外部メモリをスリープ」にとって、有効な時間であると判断する。   Next, the time prediction unit 102 refers to the device usage information 355 of the second periodic interrupt “periodic interrupt from another CPU” in FIG. As a result, since there is no information that the external memory is not used, the time prediction unit 102 can determine that the second periodic interrupt uses the external memory. That is, the time prediction unit 102 determines that the latest time interval 223 and the average time interval 224 corresponding to the second periodic interrupt in FIG. 10 are effective times for the power saving mode “sleep external memory”. .

このように、図10に例示する割込記録テーブル220Aに管理されるそれぞれの周期的な割り込み情報のうち、デバイス使用情報355を考慮した有効な時間間隔を参照することにより、より正確に省電力モードでの動作時間を予測することができる。また、前述したタイマイベントの場合と同様に、特定のデバイスを使用しないという情報ではなく、特定のデバイスを使用するという情報を、デバイス使用情報355に記録することも可能である。   Thus, by referring to the effective time interval in consideration of the device usage information 355 among the periodic interrupt information managed in the interrupt recording table 220A illustrated in FIG. The operation time in the mode can be predicted. Further, as in the case of the timer event described above, it is also possible to record not only information that a specific device is not used but information that a specific device is used in the device usage information 355.

(実施の形態3)
図4に例示した電力消費情報テーブル170には、通常モードから各省電力モードへの切替えに伴うオーバーヘッドの電力消費量171及び172が記録された。しかしながら、現在の動作モードが省電力モードの一つであるときに、別の省電力モードへ動作モードが切り替わり得るように情報処理装置1000を構成することも可能である。動作モードが、一つの省電力モードから別の省電力モードへ切り替わる場合には、通常モードから省電力モードへ切り替わる場合に比べて、各装置の状態の差違が小さくなり、動作モードの切り替えに伴うオーバーヘッドの電力消費量が小さくなる可能性がある。
(Embodiment 3)
In the power consumption information table 170 illustrated in FIG. 4, overhead power consumption amounts 171 and 172 associated with switching from the normal mode to each power saving mode are recorded. However, when the current operation mode is one of the power saving modes, the information processing apparatus 1000 can be configured so that the operation mode can be switched to another power saving mode. When the operation mode is switched from one power saving mode to another power saving mode, the difference in the state of each device is smaller than when switching from the normal mode to the power saving mode, which is accompanied by the switching of the operation mode. Overhead power consumption may be reduced.

そのような場合にも、動作モード切り替えに伴う電力消費量を精度良く取得するために、ある省電力モードから別の省電力モードに切り替わる場合に対しても、動作モード切り替えに伴う電力消費量を管理し、動作モード切替えの適否の判断に利用することが可能である。   Even in such a case, in order to obtain the power consumption associated with the operation mode switching with high accuracy, the power consumption associated with the operation mode switching is reduced even when switching from one power saving mode to another. It can be used to determine whether or not to switch the operation mode.

図11は、通常モード及び複数の省電力モードのうちの任意のモード間での切替えに対応可能な電力消費情報テーブルを表形式で例示する説明図である。この電力消費情報テーブル170Aは、図2において、電力消費情報テーブル170に置き換えられるものである。図11に例示する電力消費情報テーブル170Aには、2種類の電力消費量及び消費電力がマトリクス状に配列されている。図11において、横方向には現在の動作モードが配列し、縦方向には移行先の動作モードが配列している。例えば、省電力モードである動作モード「1」から、他の省電力モード「3」への切替えの適否を判定する際には、モード切替判定部103は、4行2列(縦4行目、横2列目)に記録される電力消費量171A、172A及び消費電力173Aを参照するとよい。動作モード「1」からの切替えを行わない場合の全電力消費量を算出するためには、モード切替判定部103は、2行1列に記録される消費電力173を参照するとよい。   FIG. 11 is an explanatory diagram illustrating, in tabular form, a power consumption information table that can be used for switching between any of the normal mode and a plurality of power saving modes. The power consumption information table 170A is replaced with the power consumption information table 170 in FIG. In the power consumption information table 170A illustrated in FIG. 11, two types of power consumption and power consumption are arranged in a matrix. In FIG. 11, the current operation mode is arranged in the horizontal direction, and the operation mode of the transfer destination is arranged in the vertical direction. For example, when determining whether or not to switch from the operation mode “1”, which is the power saving mode, to another power saving mode “3”, the mode switching determination unit 103 has four rows and two columns (vertical fourth row). Reference is made to the power consumptions 171A and 172A and the power consumption 173A recorded in the second row). In order to calculate the total power consumption when switching from the operation mode “1” is not performed, the mode switching determination unit 103 may refer to the power consumption 173 recorded in 2 rows and 1 column.

一つの省電力モードから通常モードへの切替えに際して、モード切替判定部103が切替えの適否を行うべき場合は通常想定されない。しかしながら、モード切替判定部103は、電力消費情報テーブル170Aを用いることにより、一つの省電力モードから通常モードへの切替えに際して、モード切替判定部103が切替えの適否を行うことも可能である。   When switching from one power saving mode to the normal mode, it is not normally assumed that the mode switching determination unit 103 should perform switching appropriateness. However, the mode switching determination unit 103 can use the power consumption information table 170A to allow the mode switching determination unit 103 to determine whether switching is appropriate when switching from one power saving mode to the normal mode.

図12は、実施の形態3による省電力処理装置10の動作手順を示すフローチャートである。この処理は、図8の処理によって、動作モードが一つの省電力モードへ切り替えられた後に実行される。但し、図8のステップS101では、電力消費情報管理部101は、管理情報の一つとして、電力消費情報テーブル170に代えて、電力消費情報テーブル170Aを管理する。現在の省電力モードを別の省電力モードへ切り替える要求が発生すると、まず、省電力処理装置10は、時間予測部102が予測時間を取得する(S202)。   FIG. 12 is a flowchart showing an operation procedure of the power saving processing device 10 according to the third embodiment. This process is executed after the operation mode is switched to one power saving mode by the process of FIG. However, in step S101 of FIG. 8, the power consumption information management unit 101 manages the power consumption information table 170A as one piece of management information instead of the power consumption information table 170. When a request to switch the current power saving mode to another power saving mode is generated, first, in the power saving processing device 10, the time prediction unit 102 acquires the predicted time (S202).

次に、モード切替判定部103は、電力消費情報管理部101から電力消費情報テーブル170A等の管理情報を取得し、時間予測部102から予測時間を取得する(S203)。次に、モード切替判定部103は、別の省電力モードへの切替えを行う場合と行わない場合との間で、処理時間又は全電力消費量の比較を行う(S204)。続いて、モード切替判定部103は、比較の結果に基づいて、省電力モードへの切替えが有効であるか否かを判定する(S205)。続いて、モード切替実行部104は、切替えが有効であると判定された場合(S205でYes)には、省電力モードへの切替えを行う(S206)。   Next, the mode switching determination unit 103 acquires management information such as the power consumption information table 170A from the power consumption information management unit 101, and acquires a predicted time from the time prediction unit 102 (S203). Next, the mode switching determination unit 103 compares the processing time or the total power consumption between when switching to another power saving mode and when not switching (S204). Subsequently, the mode switching determination unit 103 determines whether switching to the power saving mode is effective based on the comparison result (S205). Subsequently, when it is determined that the switching is valid (Yes in S205), the mode switching execution unit 104 switches to the power saving mode (S206).

以上の手順により、異なる省電力モードの間での動作モードの切替えに対しても、移行処理及び復帰処理に要する電力消費量を考慮した適切な切替えが実現する。   According to the above procedure, appropriate switching in consideration of the power consumption required for the transition process and the return process is realized even when the operation mode is switched between different power saving modes.

(実施の形態4)
本発明の実施の形態4による省電力処理装置は、特定の省電力モードへの切り替えの適否を判定するだけではなく、システム、すなわち情報処理装置1000が準備している複数の省電力モードのうち、最適な省電力モードを選択して実行する機能を備えており、それにより、より確度の高い省電力化を実現する。
(Embodiment 4)
The power saving processing device according to the fourth embodiment of the present invention not only determines whether or not switching to a specific power saving mode is appropriate, but also among the plurality of power saving modes prepared by the system, that is, the information processing device 1000 The function of selecting and executing the optimum power saving mode is provided, thereby realizing more accurate power saving.

以下、実施の形態4にかかる省電力処理装置に関して説明する。本発明の実施の形態4による省電力処理装置の構成は、図2の省電力処理装置10と同一に描かれる。但し、図3及び図4に例示されるように、省電力モードとして複数のモードが準備されているにも拘わらず、モード切替指示部75は、移行先となるモードを指定することなく、通常モードから省電力モードへの切替えを要求する。また、時間予測部102は、準備されている省電力モードのうち、現在のモードを除く全てについて、仮に移行した場合の予測時間を算出する。   The power saving processing apparatus according to the fourth embodiment will be described below. The configuration of the power saving processing device according to the fourth embodiment of the present invention is depicted in the same way as the power saving processing device 10 of FIG. However, as illustrated in FIG. 3 and FIG. 4, the mode switching instruction unit 75 normally does not designate a mode to be a transition destination even though a plurality of modes are prepared as the power saving mode. Request switching from mode to power saving mode. Moreover, the time prediction unit 102 calculates the predicted time when the transition is made for all of the prepared power saving modes except the current mode.

モード切替判定部103は、準備されている省電力モードのうち、現在のモードを除く全てについて、モード切替えを行った場合の全電力消費量を算出し、全電力消費量の最も低いモードを、最適な移行先として選択する。モード切替判定部103は、全電力消費量を比較する代わりに、モード移行後の継続期間Tsの最も長いモードを、最適な省電力モードとして選択しても良い。モード切替判定部103は、更に、選択した省電力モードについて、通常モードから当該省電力モードへ切り替えるのが適切であるか否かを、実施の形態1のモード切替判定部103と同様に判定しても良い。モード切替実行部104は、実施の形態1の場合と同様に、モード切替判定部103の判定結果に従って、モード切替を実行する。   The mode switching determination unit 103 calculates the total power consumption when mode switching is performed for all of the prepared power saving modes except the current mode, and selects the mode with the lowest total power consumption. Choose the best migration destination. Instead of comparing the total power consumption, the mode switching determination unit 103 may select the mode with the longest duration Ts after the mode transition as the optimum power saving mode. The mode switching determination unit 103 further determines whether or not it is appropriate to switch from the normal mode to the power saving mode for the selected power saving mode in the same manner as the mode switching determination unit 103 of the first embodiment. May be. The mode switching execution unit 104 executes mode switching according to the determination result of the mode switching determination unit 103 as in the case of the first embodiment.

図13及び図14は、モード切替判定部103の動作を説明するグラフであり、動作モードの切替えに伴う、消費電力(mW)の推移を例示している。図13及び図14は、省電力モードAと省電力モードBという2種類の省電力モードに切替えられた場合の消費電力の推移を、互いに対比し得るように示している。   FIGS. 13 and 14 are graphs for explaining the operation of the mode switching determination unit 103, and illustrate the transition of power consumption (mW) accompanying the switching of the operation mode. FIG. 13 and FIG. 14 show the transitions of power consumption when switching to two power saving modes, power saving mode A and power saving mode B, so that they can be compared with each other.

一般的に、電力消費量を低く抑えて高い省電力効果を得ようとすると、より大きなオーバーヘッドを必要とする。省電力モードで動作することが可能な継続時間を予測し、さらに省電力モードに切り替える移行処理及び通常モードに戻す復帰処理に要する電力消費量や処理時間のオーバーヘッドを算出して、互いに比較することにより、トレードオフを解決した最適な省電力モードを選択することができる。   In general, in order to obtain a high power saving effect while keeping power consumption low, a larger overhead is required. Predict the duration that can operate in power saving mode, and calculate power consumption and processing time overhead required for transition processing to switch to power saving mode and return processing to return to normal mode, and compare with each other Thus, it is possible to select an optimum power saving mode that solves the trade-off.

省電力モードAは、省電力モードBと比較して、省電力モードで動作している間の消費電力(mW)が小さく、単位時間あたりの省電力効果が高い。図13及び図14を参照すると、時刻452から時刻453の継続期間にわたって、システムが省電力モードAで動作した場合の消費電力は、WsAであり、時刻462から時刻463の継続期間にわたって省電力モードBで動作した場合の消費電力WsBより低く抑えられる。   In the power saving mode A, compared with the power saving mode B, the power consumption (mW) during operation in the power saving mode is small, and the power saving effect per unit time is high. Referring to FIGS. 13 and 14, the power consumption when the system operates in the power saving mode A over the duration from time 452 to time 453 is WsA, and the power saving mode over the duration from time 462 to time 463. The power consumption when operating at B is kept lower than WsB.

しかし、省電力モードAに切り替える際のオーバーヘッドは、省電力モードBに切り替える場合と比較して大きくなっている。図13及び図14を参照すると、省電力モードAに切り替える移行処理に要する時刻451から時刻452にわたる処理時間TuAは、省電力モードBに切り替える移行処理に要する時刻461から時刻462にわたる処理時間TuBよりも長い。その結果、移行処理に要する電力消費量(mJ)は、省電力モードAに切り替える場合の方が大きくなる。また、同様に省電力モードAから通常モードへ復帰するための復帰処理に要する時刻453から時刻454にわたる処理時間TdAは、省電力モードBから通常モードへ復帰する復帰処理に要する時間463から時間464にわたる処理時間TdBよりも長い。その結果、復帰処理に要する電力消費量は、省電力モードAから通常モードへ復帰する場合の方が大きくなる。   However, the overhead when switching to the power saving mode A is larger than when switching to the power saving mode B. Referring to FIGS. 13 and 14, the processing time TuA from time 451 to time 452 required for the transition processing to switch to the power saving mode A is greater than the processing time TuB from time 461 to time 462 required for the transition processing to switch to the power saving mode B. Also long. As a result, the power consumption (mJ) required for the transition process is larger when switching to the power saving mode A. Similarly, the processing time TdA from time 453 to time 454 required for the return processing for returning from the power saving mode A to the normal mode is the time 463 to time 464 required for the return processing for returning from the power saving mode B to the normal mode. Is longer than the processing time TdB. As a result, the power consumption required for the return processing is greater when returning from the power saving mode A to the normal mode.

モード切替判定部103は、例えば、図13に示す省電力モードAについて、時刻451で省電力モードに切り替えることを要求されてから時刻454に通常動作に復帰するまでの全電力消費量を、各区間の電力消費と時間に基づいて算出する。省電力モードAに切り替えるための移行処理に要する電力消費量は、WuAとTuAの積(WuA×TuA)として算出することができる。また、省電力モードAで動作する継続期間における電力消費量は、WsAとTsAの積(WsA×TsA)として算出することができる。さらに、省電力モードAから通常モードへ復帰するための復帰処理に要する電力消費量は、WdAとTdAの積(WdA×TdA)として算出することができる。省電力モードAへの切り替え要求から、復帰までに消費する電力消費量は、以上に述べた各区間の電力消費量の総和によって求められる。   For example, for the power saving mode A shown in FIG. 13, the mode switching determination unit 103 calculates the total power consumption from when it is requested to switch to the power saving mode at time 451 until it returns to normal operation at time 454. Calculate based on the power consumption and time of the section. The power consumption required for the transition process for switching to the power saving mode A can be calculated as the product of WuA and TuA (WuA × TuA). Further, the power consumption during the continuous period of operation in the power saving mode A can be calculated as a product of WsA and TsA (WsA × TsA). Furthermore, the power consumption required for the return process for returning from the power saving mode A to the normal mode can be calculated as the product of WdA and TdA (WdA × TdA). The power consumption consumed from the request for switching to the power saving mode A until the return is obtained by the sum of the power consumption in each section described above.

モード切替判定部103は、例えば、図14に示す省電力モードBについても、全電力消費量を、各区間の電力消費と時間に基づいて算出する。省電力モードBに対する全電力消費量は、省電力モードBへの移行処理で消費するWuB×TuB、及び省電力モードBで動作している継続期間で消費するWsB×TsB、及び省電力モードBから通常モードへの復帰処理で消費するWdB×TdBの総和によって求められる。   For example, also in the power saving mode B shown in FIG. 14, the mode switching determination unit 103 calculates the total power consumption based on the power consumption and time of each section. The total power consumption for the power saving mode B is WuB × TuB consumed in the transition processing to the power saving mode B, WsB × TsB consumed in the continuous period of operation in the power saving mode B, and the power saving mode B From the sum of WdB × TdB consumed in the return processing from normal mode to normal mode.

モード切替判定部103は、システムが移行先として採り得る各省電力モードについて、電力消費情報管理部101から伝えられる電力消費情報テーブル170と、時間予測部102から伝えられる各省電力モードについての予測時間とに基づいて、省電力モードA及びBについて例示した手順で、全電力消費量の総和を算出する。モード切替判定部103は、更に、算出された全電力消費量が最も小さい省電力モードを選択する。   The mode switching determination unit 103 includes a power consumption information table 170 transmitted from the power consumption information management unit 101 for each power saving mode that the system can take as a transition destination, and a predicted time for each power saving mode transmitted from the time prediction unit 102. Based on the above, the sum of the total power consumption is calculated in the procedure exemplified for the power saving modes A and B. The mode switching determination unit 103 further selects a power saving mode in which the calculated total power consumption is the smallest.

以上のように構成された実施の形態4による省電力処理装置10について、図15のフローチャートを参照しつつその動作を述べる。実施の形態4による省電力処理装置10は、電源が立ち上げられるなどにより処理が開始されると、電力消費情報管理部101が電力消費情報テーブル170等の管理情報を管理する。同時に、時間予測部102は割込記録テーブル220の管理を行う(以上、S401)。   The operation of the power saving processing apparatus 10 according to the fourth embodiment configured as described above will be described with reference to the flowchart of FIG. In the power saving processing device 10 according to the fourth embodiment, when the processing is started, for example, when the power is turned on, the power consumption information management unit 101 manages management information such as the power consumption information table 170. At the same time, the time prediction unit 102 manages the interrupt record table 220 (S401).

次に、電力消費を抑えるための省電力モードへの切り替え要求(命令)が発生すると、省電力処理装置10は、ステップS402以下の処理を実行する。ステップS401の処理は、ステップS402以下の処理と並行して引き続き実行される。   Next, when a request (command) for switching to the power saving mode for suppressing power consumption is generated, the power saving processing apparatus 10 executes the processing from step S402 onward. The process in step S401 is continuously executed in parallel with the processes in step S402 and subsequent steps.

ステップS402では、時間予測部102は、現在のモード以外の全ての省電力モードについて、予測時間を算出する。次に、モード切替判定部103は、電力消費情報管理部101から電力消費情報テーブル170等の管理情報を取得し、時間予測部102から各省電力モードについての予測時間を取得する(S403)。次に、モード切替判定部103は、選択し得る省電力モードの間で、継続時間又は全電力消費量の比較を行うことにより、最適な省電力モードを選択する(S404)。続いて、モード切替判定部103は、選択した省電力モードへの切替えが有効であるか否かを判定する(S405)。続いて、モード切替実行部104は、切替えが有効であると判定された場合(S405でYes)には、省電力モードへの切替えを行う(S406)。   In step S402, the time prediction unit 102 calculates prediction times for all power saving modes other than the current mode. Next, the mode switching determination unit 103 acquires management information such as the power consumption information table 170 from the power consumption information management unit 101, and acquires a predicted time for each power saving mode from the time prediction unit 102 (S403). Next, the mode switching determination unit 103 selects an optimum power saving mode by comparing the duration or the total power consumption among the power saving modes that can be selected (S404). Subsequently, the mode switching determination unit 103 determines whether or not switching to the selected power saving mode is effective (S405). Subsequently, when it is determined that the switching is valid (Yes in S405), the mode switching execution unit 104 switches to the power saving mode (S406).

なお、モード切替判定部103は、ステップS404で省電力モードの中から最適な省電力モードを選択した後に、ステップS405でその省電力モードに切り替えることが有効かどうかを判定せずに、そのまま選択した省電力モードを実行するようにモード切替実行部104に通知してもよい。すなわち、モード切替判定部103は、省電力モードに切り替えるオーバーヘッドを考慮に入れて、選択可能な省電力モードの中から最適な省電力モードを、モード切替実行部104に実行させてもよい。   The mode switching determination unit 103 selects an optimum power saving mode from the power saving modes in step S404, and then selects it as it is without determining whether switching to the power saving mode is effective in step S405. The mode switching execution unit 104 may be notified to execute the power saving mode. That is, the mode switching determination unit 103 may cause the mode switching execution unit 104 to execute an optimum power saving mode from among selectable power saving modes in consideration of the overhead for switching to the power saving mode.

(その他の実施の形態)
(1) 上記各実施の形態では、時間予測部102は、タイマイベント予測部74と反復割込予測部73との双方を有していたが、これらの一方のみを有する形態を採ることも可能である。
(Other embodiments)
(1) In each of the above embodiments, the time predicting unit 102 has both the timer event predicting unit 74 and the iterative interrupt predicting unit 73, but it is also possible to adopt a form having only one of them. It is.

(2) 実施の形態4において、モード切替判定部103は、現在の動作モードからの移行先の候補として、現在の動作モード以外の全ての省電力モードを想定し、それらの中から最適な移行先を選択した。これに対して、移行先の候補として、ある範囲内の省電力モードに制限することも可能である。この場合、モード切替指示部75が、所定の範囲を指示する形態を採ることが可能である。所定の範囲は、現在の動作モードが何れであるかによって異なっていても良い。また、実施の形態4のように、現在の動作モード以外の全ての省電力モードを移行先の候補とすることは、所定の範囲をかかる範囲に設定したことと同等である。更に、移行先の候補に通常モードをも含める場合には、移行先に全く制限がないことに相当する。この場合は、所定の範囲を現在のモード以外の全ての動作モードに設定することとも同等である。   (2) In the fourth embodiment, the mode switching determination unit 103 assumes all the power saving modes other than the current operation mode as candidates for the transfer destination from the current operation mode, and makes an optimal transition from them. I chose a destination. On the other hand, it is also possible to limit to a power saving mode within a certain range as a migration destination candidate. In this case, it is possible for the mode switching instruction unit 75 to instruct a predetermined range. The predetermined range may be different depending on which of the current operation modes. Further, as in the fourth embodiment, setting all the power saving modes other than the current operation mode as candidates for the transfer destination is equivalent to setting the predetermined range to such a range. Furthermore, when the normal mode is also included in the transfer destination candidates, this corresponds to no limitation on the transfer destination. In this case, it is equivalent to setting the predetermined range to all operation modes other than the current mode.

(3) 図3及び図4に例示する各テーブルは、各情報を動作モードごとに記録していた。これに対して、各情報は、省電力の処理を適用する装置要素ごとに記録されてもよい。例えば、図3及び図4のテーブルにおいて、識別番号「2」では、内部メモリ及び外部メモリをスリープする省電力モードに関する情報が記録されていたが、内部メモリを単独でスリープさせる場合と外部メモリを単独でスリープさせる場合とに分けて、情報が記録されても良い。   (3) Each table illustrated in FIGS. 3 and 4 records each information for each operation mode. In contrast, each piece of information may be recorded for each device element to which the power saving process is applied. For example, in the tables of FIG. 3 and FIG. 4, the identification number “2” records information on the power saving mode for sleeping the internal memory and the external memory. Information may be recorded separately in the case of making it sleep alone.

内部メモリと外部メモリを同時にスリープさせる省電力モードへの切替えに対しては、モード切替判定部103は、省電力モードへの移行処理として、それら2つの装置要素に対して行うべき処理に要する電力消費量を加算することによって、移行処理に要する電力消費量を取得することができる。また、図4の消費電力173として、システムが各動作モードで動作している時の消費電力に代えて、各装置要素に省電力処理を適用した際の消費電力を記録するとよい。それにより、モード切替判定部103は、内部メモリをスリープさせた場合の消費電力と外部メモリをスリープさせた場合の消費電力を加算することにより、動作モードが内部メモリ及び外部メモリを共にスリープさせる省電力モードである時の消費電力を取得することができる。以上、内部メモリと外部メモリをスリープさせる場合を例として説明したが、他の装置要素への省電力処理の組み合わせについても、同様に実施可能である。   For switching to the power saving mode that causes the internal memory and the external memory to sleep at the same time, the mode switching determination unit 103 uses the power required for the processing to be performed on these two device elements as the transition processing to the power saving mode. By adding the consumption amount, the power consumption amount required for the migration process can be acquired. In addition, as the power consumption 173 in FIG. 4, the power consumption when the power saving process is applied to each device element may be recorded instead of the power consumption when the system is operating in each operation mode. As a result, the mode switching determination unit 103 adds the power consumption when the internal memory is put to sleep and the power consumption when the external memory is put to sleep so that the operation mode sleeps both the internal memory and the external memory. The power consumption when in the power mode can be acquired. As described above, the case where the internal memory and the external memory are set to sleep has been described as an example.

本発明にかかる省電力処理装置、省電力処理方法及び省電力処理プログラムは、省電力モードを実施するシステム、すなわち対象装置において、省電力モードに切り替える際のオーバーヘッドを考慮して省電力処理を行なうことにより、電力消費量を抑える機能を有するので、情報機器やAV機器や通信機器、家電機器などの電力を消費する機器において有用である。   A power saving processing device, a power saving processing method, and a power saving processing program according to the present invention perform power saving processing in consideration of overhead when switching to a power saving mode in a system that implements a power saving mode, that is, a target device. Therefore, since it has a function of suppressing power consumption, it is useful in devices that consume power, such as information devices, AV devices, communication devices, and home appliances.

本発明の実施の形態1による情報処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the information processing apparatus by Embodiment 1 of this invention. 図1のメモリ装置に格納されたプログラムの構成を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration of a program stored in the memory device of FIG. 1. 図1の省電力モードテーブルの一例を表形式で示す説明図である。It is explanatory drawing which shows an example of the power saving mode table of FIG. 1 in a table format. 図1の電力消費情報テーブルの一例を表形式で示す説明図である。It is explanatory drawing which shows an example of the power consumption information table of FIG. 1 in a table format. 図1のタイマリスト管理キューがタイマイベントを管理する形態を模式的に描いた説明図である。It is explanatory drawing which drew typically the form which the timer list management queue of FIG. 1 manages a timer event. 図1の割込記録テーブルの一例を表形式で示す説明図である。It is explanatory drawing which shows an example of the interruption recording table of FIG. 1 in a table format. 図1のモード切替判定部の動作を説明するグラフである。It is a graph explaining operation | movement of the mode switching determination part of FIG. 図1の省電力処理装置の動作手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure of the power saving processing apparatus of FIG. 本発明の実施の形態2によるタイマリスト管理キューがタイマイベントを管理する形態を模式的に描いた説明図である。It is explanatory drawing which drew typically the form which the timer list management queue by Embodiment 2 of this invention manages a timer event. 本発明の実施の形態2による割込記録テーブルを表形式で示す説明図である。It is explanatory drawing which shows the interruption recording table by Embodiment 2 of this invention in a table format. 本発明の実施の形態3による電力消費情報テーブルを表形式で例示する説明図である。It is explanatory drawing which illustrates the power consumption information table by Embodiment 3 of this invention in a table format. 本発明の実施の形態3による省電力処理装置の動作手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure of the power saving processing apparatus by Embodiment 3 of this invention. 本発明の実施の形態4によるモード切替判定部の動作を説明するグラフである。It is a graph explaining operation | movement of the mode switching determination part by Embodiment 4 of this invention. 本発明の実施の形態4によるモード切替判定部の動作を説明するグラフである。It is a graph explaining operation | movement of the mode switching determination part by Embodiment 4 of this invention. 本発明の実施の形態4による省電力処理装置の動作手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure of the power saving processing apparatus by Embodiment 4 of this invention.

符号の説明Explanation of symbols

10 省電力処理装置
74 タイマイベント予測部
73 反復割込予測部
75 モード切替指示部
101 電力消費情報管理部
102 時間予測部
103 モード切替判定部
104 モード切替実行部
150 省電力モードテーブル(管理情報)
170 電力消費情報テーブル(管理情報)
201 タイマリスト管理キュー(タイマイベント管理部)
301,302,355 デバイス使用情報(装置使用情報)
153 装置選択情報
DESCRIPTION OF SYMBOLS 10 Power saving processing apparatus 74 Timer event prediction part 73 Repetitive interrupt prediction part 75 Mode switching instruction part 101 Power consumption information management part 102 Time prediction part 103 Mode switching determination part 104 Mode switching execution part 150 Power saving mode table (management information)
170 Power consumption information table (management information)
201 timer list management queue (timer event management section)
301, 302, 355 Device usage information (device usage information)
153 Device selection information

Claims (19)

対象装置の動作モードを通常モード及び1以上の省電力モードを含む複数モードの間で切り替える省電力処理装置であって、
前記動作モードの切替え処理に関する情報を管理する電力消費情報管理部と、
前記複数モードのうちの現在のモードから別のモードへの切替え要求が発生した際に、当該切替え要求に応じた場合に、前記別のモードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を予測する時間予測部と、
前記電力消費情報管理部が管理する前記情報である管理情報と前記時間予測部が予測した前記時間である予測時間とに基づいて、前記別のモードが継続する期間を算出し、算出した値を用いて、前記動作モードを前記現在のモードから前記別のモードへ切替えるか否かの判定を行うモード切替判定部と、
前記モード切替判定部の判定に従って、前記対象装置の前記動作モードを切替えるモード切替実行部と、を備え、
前記管理情報は、前記現在のモードから前記別の各モードへの移行処理に要する処理時間と、前記別の各モードから前記現在のモードへの復帰処理に要する処理時間と、のうち前記各モードについての前記予測時間により、前記別の各モードが継続する期間を導出し得る情報を含んでいる省電力処理装置。
A power saving processing device that switches an operation mode of a target device between a normal mode and a plurality of modes including one or more power saving modes,
A power consumption information management unit for managing information related to the operation mode switching process;
When a request for switching from the current mode to another mode is generated among the plurality of modes, the time until the other mode is canceled or the current mode is restored when the switching request is satisfied. A time prediction unit for predicting the time until
Based on the management information that is the information managed by the power consumption information management unit and the predicted time that is the time predicted by the time prediction unit, a period during which the other mode continues is calculated, and the calculated value is A mode switching determination unit that determines whether to switch the operation mode from the current mode to the other mode;
A mode switching execution unit that switches the operation mode of the target device according to the determination of the mode switching determination unit;
The management information is a processing time required for a transition process from the current mode to the other mode and a processing time required for a return process from the different mode to the current mode. A power-saving processing device that includes information that can derive a period during which each of the other modes continues according to the predicted time for.
前記1以上の省電力モードが2以上の省電力モードである請求項1記載の省電力処理装置。   The power saving processing apparatus according to claim 1, wherein the one or more power saving modes are two or more power saving modes. 対象装置の動作モードを通常モード及び2以上の省電力モードを含む複数モードの間で切り替える省電力処理装置であって、
前記動作モードの切替え処理に関する情報を管理する電力消費情報管理部と、
前記複数モードのうちの現在のモードから他の2以上のモードを含む特定範囲のモードへの切替え要求が発生した際に、当該切替え要求に応じた場合に、前記特定範囲内の各モードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を、前記特定範囲内のモード毎に予測する時間予測部と、
前記電力消費情報管理部が管理する前記情報である管理情報と前記時間予測部が予測した前記モード毎の前記時間である予測時間とに基づいて、前記特定範囲内の各モードが継続する期間を算出し、算出した値を用いて、前記特定範囲内の各モードのうちから現在のモードの切り替え先を判定するモード切替判定部と、
前記モード切替判定部の判定に従って、前記対象装置の前記動作モードを切替えるモード切替実行部と、を備え、
前記管理情報は、前記現在のモードから別の各モードへの移行処理に要する処理時間と、前記別の各モードから前記現在のモードへの復帰処理に要する処理時間と、のうち前記各モードについての前記予測時間により、前記別の各モードが継続する期間を導出し得る情報を含んでいる省電力処理装置。
A power saving processing device that switches an operation mode of a target device between a plurality of modes including a normal mode and two or more power saving modes,
A power consumption information management unit for managing information related to the operation mode switching process;
When a request for switching from the current mode of the plurality of modes to a mode within a specific range including two or more other modes is generated, each mode within the specific range is canceled when the switching request is met A time prediction unit that predicts the time until the current mode or the time until the current mode is restored for each mode within the specific range;
Based on the management information that is the information managed by the power consumption information management unit and the predicted time that is the time for each mode predicted by the time prediction unit, a period in which each mode within the specific range continues A mode switching determination unit that determines a switching destination of the current mode from among the modes within the specific range using the calculated value;
A mode switching execution unit that switches the operation mode of the target device according to the determination of the mode switching determination unit;
The management information is a processing time required for a transition process from the current mode to another mode and a processing time required for a return process from the different mode to the current mode. A power-saving processing device including information that can derive a period in which each of the different modes continues according to the predicted time.
対象装置の動作モードを通常モード及び2以上の省電力モードを含む複数モードの間で切り替える省電力処理装置であって、
前記動作モードの切替え処理に関する情報を管理する電力消費情報管理部と、
前記複数モードのうちの現在のモードから他の2以上のモードを含む特定範囲のモードへの切替え要求が発生した際に、当該切替え要求に応じた場合に、前記特定範囲内の各モードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を、前記特定範囲内のモード毎に予測する時間予測部と、
前記電力消費情報管理部が管理する前記情報である管理情報と前記時間予測部が予測した前記モード毎の前記時間である予測時間とに基づいて、前記特定範囲内の各モードが継続する期間を算出し、算出した値を用いて、前記動作モードを前記現在のモードから前記特定範囲内の何れのモードへ切り替えるか、又は何れにも切り替えないか、を判定するモード切替判定部と、
前記モード切替判定部の判定に従って、前記対象装置の前記動作モードを切替えるモード切替実行部と、を備え、
前記管理情報は、前記現在のモードから別の各モードへの移行処理に要する処理時間と、前記別の各モードから前記現在のモードへの復帰処理に要する処理時間と、のうち前記各モードについての前記予測時間により、前記別の各モードが継続する期間を導出し得る情報を含んでいる省電力処理装置。
A power saving processing device that switches an operation mode of a target device between a plurality of modes including a normal mode and two or more power saving modes,
A power consumption information management unit for managing information related to the operation mode switching process;
When a request for switching from the current mode of the plurality of modes to a mode within a specific range including two or more other modes is generated, each mode within the specific range is canceled when the switching request is met A time prediction unit that predicts the time until the current mode or the time until the current mode is restored for each mode within the specific range;
Based on the management information that is the information managed by the power consumption information management unit and the predicted time that is the time for each mode predicted by the time prediction unit, a period in which each mode within the specific range continues A mode switching determination unit that determines whether to switch the operation mode from the current mode to any mode within the specific range or not to switch to any one using the calculated value;
A mode switching execution unit that switches the operation mode of the target device according to the determination of the mode switching determination unit;
The management information is a processing time required for a transition process from the current mode to another mode and a processing time required for a return process from the different mode to the current mode. A power-saving processing device including information that can derive a period in which each of the different modes continues according to the predicted time.
前記切替え要求は、前記現在のモードとして前記通常モードであるときの切替要求を含む、請求項1ないし4の何れかに記載の省電力処理装置。   The power saving processing apparatus according to claim 1, wherein the switching request includes a switching request when the current mode is the normal mode. 前記切替え要求は、
前記現在のモードとして前記通常モードであるときの切替要求と、
前記現在のモードが前記2以上の省電力モードのうちの一つであるときの切替要求と、を含む請求項2ないし4の何れかに記載の省電力処理装置。
The switching request is
A switching request when the current mode is the normal mode;
5. The power saving processing device according to claim 2, further comprising: a switching request when the current mode is one of the two or more power saving modes.
前記モード切替判定部は、前記別のモードが継続する期間の長さを評価することにより、前記判定を行う請求項1ないし6の何れかに記載の省電力処理装置。   The power saving processing apparatus according to claim 1, wherein the mode switching determination unit performs the determination by evaluating a length of a period in which the another mode continues. 前記モード切替判定部は、前記別のモードへの前記移行処理に要する電力消費量と前記別のモードが継続する期間に要する電力消費量と前記現在のモードへの復帰処理に要する電力消費量との和としての電力消費量を評価することにより、前記判定を行うものであり、
前記管理情報は、前記別の各モードにおける前記対象装置の消費電力と、前記現在のモードから前記別の各モードへの移行処理に要する前記対象装置の電力消費量と、前記現在のモードから前記別の各モードへの移行処理に要する前記対象装置の消費電力と、前記現在のモードから前記別の各モードへの移行処理に要する処理時間と、前記別の各モードから前記現在のモードへの復帰処理に要する前記対象装置の電力消費量と、前記別の各モードから前記現在のモードへの復帰処理に要する前記対象装置の消費電力と、前記別の各モードから前記現在のモードへの復帰処理に要する処理時間とのうち、前記各モードについての前記予測時間に基づいて、前記モード切替判定部が評価の対象とする電力消費量を導出し得る情報を含んでいる請求項1ないし6の何れかに記載の省電力処理装置。
The mode switching determination unit includes a power consumption required for the transition process to the different mode, a power consumption required for a period in which the different mode continues, and a power consumption required for the return process to the current mode. The above determination is made by evaluating the power consumption as the sum of
The management information includes the power consumption of the target device in each of the different modes, the power consumption of the target device required for the transition process from the current mode to each of the different modes, and the current mode from the current mode. The power consumption of the target device required for the transition process to each other mode, the processing time required for the transition process from the current mode to the other mode, and the transition from the other mode to the current mode Power consumption of the target device required for return processing, power consumption of the target device required for return processing from each other mode to the current mode, and return from each other mode to the current mode The information which can derive | lead-out the power consumption which the said mode switch determination part evaluates based on the said prediction time about each said mode among the processing time required for a process is included. 1 to the power saving processing apparatus according to any one of 6.
前記モード切替判定部は、前記別のモードへの前記移行処理に要する電力消費量と前記別のモードが継続する期間に要する電力消費量と前記現在のモードへの復帰処理に要する電力消費量との和としての電力消費量と、同一期間における前記現在のモードの電力消費量とを比較することにより、前記判定を行うものであり、
前記管理情報は、前記現在のモードにおける前記対象装置の消費電力と、前記別の各モードにおける前記対象装置の消費電力と、前記現在のモードから前記別の各モードへの移行処理に要する前記対象装置の電力消費量と、前記現在のモードから前記別の各モードへの移行処理に要する前記対象装置の消費電力と、前記現在のモードから前記別の各モードへの移行処理に要する処理時間と、前記別の各モードから前記現在のモードへの復帰処理に要する前記対象装置の電力消費量と、前記別の各モードから前記現在のモードへの復帰処理に要する前記対象装置の消費電力と、前記別の各モードから前記現在のモードへの復帰処理に要する処理時間とのうち、前記各モードについての前記予測時間に基づいて、前記モード切替判定部が比較の対象とする電力消費量を導出し得る情報を含んでいる請求項1又は2記載の省電力処理装置。
The mode switching determination unit includes a power consumption required for the transition process to the different mode, a power consumption required for a period in which the different mode continues, and a power consumption required for the return process to the current mode. The determination is made by comparing the power consumption as the sum of the power consumption of the current mode in the same period,
The management information includes the power consumption of the target device in the current mode, the power consumption of the target device in each of the other modes, and the target required for the transition process from the current mode to each of the other modes. Power consumption of the device, power consumption of the target device required for the transition processing from the current mode to each other mode, and processing time required for the transition processing from the current mode to each other mode, , Power consumption of the target device required for return processing from each other mode to the current mode, and power consumption of the target device required for return processing from each other mode to the current mode, Based on the predicted time for each mode out of the processing time required for return processing from each of the other modes to the current mode, the mode switching determination unit performs comparison. Saving processing apparatus according to claim 1 or 2, wherein it contains information capable of deriving the power consumption to be.
タイマイベントを管理するタイマイベント管理部を更に備え、
前記時間予測部は、
前記タイマイベント管理部が管理しているタイマイベントを検索することにより、タイマイベントが実行される時刻に基づいて、予測の対象とされる、移行先のモードが解除されるまでの時間を予測するタイマイベント予測部を有する、請求項1ないし9の何れかに記載の省電力処理装置。
A timer event management unit for managing timer events;
The time prediction unit
By searching for the timer event managed by the timer event management unit, the time until the transition destination mode is canceled is predicted based on the time when the timer event is executed. The power saving processing apparatus according to claim 1, further comprising a timer event prediction unit.
前記タイマイベント管理部は、タイマイベントの実行に伴う前記対象装置の構成部分の使用又は不使用を示す装置使用情報をもタイマイベント毎に管理しており、
前記電力消費情報管理部が管理する前記管理情報は、前記各省電力モードにおいて前記対象装置の構成部分のうち使用又は不使用となるものを示す装置選択情報を含んでおり、
前記タイマイベント予測部は、前記装置使用情報及び前記装置選択情報を参照することにより、前記タイマイベント管理部が管理しているタイマイベントのうち、予測の対象とされる移行先のモードで不使用とされる前記対象装置の構成部分が最先に使用されるタイマイベントの実行時刻に基づいて、前記移行先のモードが解除されるまでの時間を予測する請求項10記載の省電力処理装置。
The timer event management unit also manages, for each timer event, device usage information indicating use or non-use of a component of the target device associated with execution of the timer event.
The management information managed by the power consumption information management unit includes device selection information indicating what is used or not used among the constituent parts of the target device in each power saving mode,
The timer event prediction unit refers to the device usage information and the device selection information, and is not used in the transition destination mode to be predicted among the timer events managed by the timer event management unit. The power saving processing device according to claim 10, wherein a time until the transition destination mode is canceled is predicted based on an execution time of a timer event that is used first by a component of the target device.
前記時間予測部は、過去に発生した1以上の種類の反復的割り込みの各々の時間間隔に基づいて、前記予測の対象とされる、移行先のモードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を予測する反復割込予測部を有する、請求項1ないし11の何れかに記載の省電力処理装置。   The time prediction unit, based on the time interval of each of one or more types of repetitive interrupts that occurred in the past, the time until the transition-destination mode that is the target of the prediction is canceled or the current The power saving processing apparatus according to claim 1, further comprising an iterative interrupt prediction unit that predicts a time until returning to the mode. 前記反復割込予測部は、過去に発生した前記1以上の種類の反復的割り込みの各々の時間間隔の平均値を算出する計測部を有し、前記各々の前記平均値に基づいて、前記予測の対象とされる、移行先のモードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を予測する請求項12記載の省電力処理装置。   The repetitive interrupt prediction unit includes a measurement unit that calculates an average value of each time interval of the one or more types of repetitive interrupts that have occurred in the past, and the prediction based on each of the average values The power saving processing device according to claim 12, wherein the time until the transition destination mode is canceled or the time until the current mode is restored is predicted. 前記反復割込予測部は、過去に発生した前記1以上の種類の反復的割り込みの各々の最新の時間間隔である最新時間間隔を算出する計測部を有し、前記各々の前記最新時間間隔に基づいて、前記予測の対象とされる、移行先のモードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を予測する請求項12記載の省電力処理装置。   The repetitive interrupt prediction unit includes a measurement unit that calculates a latest time interval that is a latest time interval of each of the one or more types of repetitive interrupts that have occurred in the past, and each of the latest time intervals includes 13. The power saving processing apparatus according to claim 12, wherein a time required until the transition destination mode is canceled or a time required for returning to the current mode is predicted based on the prediction target. 前記時間予測部は、過去に発生した前記1以上の反復的割り込みの各々の実行に伴う前記対象装置の構成部分の使用又は不使用を示す装置使用情報を管理しており、
前記電力消費情報管理部が管理する前記管理情報は、前記各省電力モードにおいて前記対象装置の構成部分のうち使用又は不使用となるものを示す装置選択情報を含んでおり、
前記反復割込予測部は、前記装置使用情報及び前記装置選択情報を参照することにより、過去に発生した前記1以上の種類の反復的割り込みのうち、予測の対象とされる移行先のモードで不使用とされる前記対象装置の構成部分が使用される反復的割り込みの時間間隔に基づいて、前記移行先のモードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を予測する請求項12ないし14の何れかに記載の省電力処理装置。
The time prediction unit manages device usage information indicating use or non-use of a component of the target device associated with execution of each of the one or more repetitive interrupts that occurred in the past;
The management information managed by the power consumption information management unit includes device selection information indicating what is used or not used among the constituent parts of the target device in each power saving mode,
The iterative interrupt prediction unit refers to the device usage information and the device selection information, and is a transition destination mode to be predicted among the one or more types of repetitive interrupts generated in the past. Based on the repetitive interrupt time interval in which the component part of the target device that is not used is used, the time until the transition destination mode is canceled or the time until the current mode is restored is predicted. The power saving processing apparatus according to any one of claims 12 to 14.
前記省電力処理装置は、前記対象装置に含まれ、自身をも動作モードの切替えの対象とする請求項1ないし15の何れかに記載の省電力処理装置。   The power saving processing apparatus according to any one of claims 1 to 15, wherein the power saving processing apparatus is included in the target apparatus and targets itself for operation mode switching. 前記省電力処理装置は、単一の半導体基板に作り込まれた半導体集積回路として形成されている請求項1ないし16の何れかに記載の省電力処理装置。   The power saving processing apparatus according to any one of claims 1 to 16, wherein the power saving processing apparatus is formed as a semiconductor integrated circuit built in a single semiconductor substrate. 対象装置の動作モードを通常モード及び1以上の省電力モードを含む複数モードの間で切り替える省電力処理方法であって、
前記動作モードの切替え処理に関する情報を管理する電力消費情報管理工程と、
前記複数モードのうちの現在のモードから別のモードへの切替え要求が発生した際に、当該切替え要求に応じた場合に、前記別のモードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を予測する時間予測工程と、
前記電力消費情報管理工程が管理する前記情報である管理情報と前記時間予測工程が予測した前記時間である予測時間とに基づいて、前記動作モードを前記現在のモードから前記別のモードへ切替えるか否かの判定を行うモード切替判定工程と、
前記モード切替判定工程の判定に従って、前記対象装置の前記動作モードを切替える省電力モード実行工程と、を備え、
前記管理情報は、前記現在のモードから前記別の各モードへの移行処理に要する処理時間と、前記別の各モードから前記現在のモードへの復帰処理に要する処理時間と、のうち前記各モードについての前記予測時間により、前記別の各モードが継続する期間を導出し得る情報を含んでいる省電力処理方法。
A power saving processing method for switching an operation mode of a target device between a normal mode and a plurality of modes including one or more power saving modes,
A power consumption information management step for managing information related to the operation mode switching process;
When a request for switching from the current mode to another mode is generated among the plurality of modes, the time until the other mode is canceled or the current mode is restored when the switching request is satisfied. A time prediction process for predicting the time until
Whether the operation mode is switched from the current mode to the other mode based on the management information that is the information managed by the power consumption information management step and the predicted time that is the time predicted by the time prediction step. A mode switching determination step for determining whether or not,
A power saving mode execution step of switching the operation mode of the target device according to the determination of the mode switching determination step,
The management information is a processing time required for a transition process from the current mode to the other mode and a processing time required for a return process from the different mode to the current mode. A power saving processing method including information capable of deriving a period in which each of the different modes continues according to the predicted time for.
対象装置の動作モードを通常モード及び1以上の省電力モードを含む複数モードの間で切り替える省電力処理装置としてコンピュータを機能させる省電力処理プログラムであって、
前記動作モードの切替え処理に関する情報を管理する電力消費情報管理手段と、
前記複数モードのうちの現在のモードから別のモードへの切替え要求が発生した際に、当該切替え要求に応じた場合に、前記別のモードが解除されるまでの時間又は前記現在のモードに復帰するまでの時間を予測する時間予測手段と、
前記電力消費情報管理手段が管理する前記情報である管理情報と前記時間予測手段が予測した前記時間である予測時間とに基づいて、前記動作モードを前記現在のモードから前記別のモードへ切替えるか否かの判定を行うモード切替判定手段と、
前記モード切替判定手段の判定に従って、前記対象装置の前記動作モードを切替える省電力モード実行手段として前記コンピュータを機能させ、
前記管理情報は、前記現在のモードから前記別の各モードへの移行処理に要する処理時間と、前記別の各モードから前記現在のモードへの復帰処理に要する処理時間と、のうち前記各モードについての前記予測時間により、前記別の各モードが継続する期間を導出し得る情報を含んでいる省電力処理プログラム。
A power saving processing program for causing a computer to function as a power saving processing device that switches an operation mode of a target device between a plurality of modes including a normal mode and one or more power saving modes,
Power consumption information management means for managing information related to the operation mode switching process;
When a request for switching from the current mode to another mode is generated among the plurality of modes, the time until the other mode is canceled or the current mode is restored when the switching request is satisfied. Time prediction means for predicting the time until
Whether the operation mode is switched from the current mode to the other mode based on the management information that is the information managed by the power consumption information management unit and the predicted time that is the time predicted by the time prediction unit Mode switching determination means for determining whether or not,
According to the determination of the mode switching determination means, the computer is caused to function as a power saving mode execution means for switching the operation mode of the target device,
The management information is a processing time required for a transition process from the current mode to the other mode and a processing time required for a return process from the different mode to the current mode. A power-saving processing program including information that can derive a period during which each of the other modes continues according to the predicted time for.
JP2005225247A 2004-08-05 2005-08-03 Power saving processing apparatus, power saving processing method, and power saving processing program Expired - Fee Related JP4749793B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005225247A JP4749793B2 (en) 2004-08-05 2005-08-03 Power saving processing apparatus, power saving processing method, and power saving processing program

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2004229216 2004-08-05
JP2004229216 2004-08-05
JP2005225247A JP4749793B2 (en) 2004-08-05 2005-08-03 Power saving processing apparatus, power saving processing method, and power saving processing program

Publications (3)

Publication Number Publication Date
JP2006072991A true JP2006072991A (en) 2006-03-16
JP2006072991A5 JP2006072991A5 (en) 2008-06-05
JP4749793B2 JP4749793B2 (en) 2011-08-17

Family

ID=36153494

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005225247A Expired - Fee Related JP4749793B2 (en) 2004-08-05 2005-08-03 Power saving processing apparatus, power saving processing method, and power saving processing program

Country Status (1)

Country Link
JP (1) JP4749793B2 (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008018328A1 (en) 2006-08-11 2008-02-14 Nec Corporation Wireless communication terminal, processor thereof, and wireless communication terminal power management method
JP2010113641A (en) * 2008-11-10 2010-05-20 Fujitsu Ltd Operation method of processor system and processor system
JP2010191945A (en) * 2008-12-31 2010-09-02 Intel Corp Platform and processor power management
JP2010282585A (en) * 2009-06-08 2010-12-16 Fujitsu Ltd Power management circuit, power management method and power management program
JP2011076206A (en) * 2009-09-29 2011-04-14 Brother Industries Ltd Portable printer
WO2011061870A1 (en) * 2009-11-18 2011-05-26 株式会社日立製作所 Computer system, management server, and method for reducing power
JP2011521350A (en) * 2008-05-13 2011-07-21 ブイエル シー.ブイ. Power manager and power management method
JP2011186591A (en) * 2010-03-05 2011-09-22 Renesas Electronics Corp Processor and control method therefor
JP2012198749A (en) * 2011-03-22 2012-10-18 Nec Corp Information processing device, control method thereof, and program
JP2013093052A (en) * 2013-02-04 2013-05-16 Nec Infrontia Corp Computer device and cpu clock adjustment method
JP2013092839A (en) * 2011-10-24 2013-05-16 Canon Inc Power supply controller, method of controlling power supply controller, and program
WO2013073013A1 (en) * 2011-11-15 2013-05-23 富士通株式会社 Power control device, electronic computer and power control method
US8516441B2 (en) 2007-03-08 2013-08-20 Fujitsu Semiconductor Limited Software optimization device and software optimization method
JP2013196472A (en) * 2012-03-21 2013-09-30 Fuji Xerox Co Ltd Information processor and power saving program for information processor
JP2013206335A (en) * 2012-03-29 2013-10-07 Mega Chips Corp Signal processor
JP2014503883A (en) * 2010-12-21 2014-02-13 クアルコム,インコーポレイテッド Method and system for a processor of a portable computing device to quickly enter and exit a sleep state
JP2014517928A (en) * 2011-04-01 2014-07-24 インテル コーポレイション Controlling platform power consumption by selectively updating the displayed image
JP2014183400A (en) * 2013-03-18 2014-09-29 Canon Inc Semiconductor integrated circuit and control method
US8954983B2 (en) 2011-11-11 2015-02-10 Qualcomm Incorporated Conserving power through work load estimation for a portable computing device using scheduled resource set transitions
US9019285B2 (en) 2007-03-15 2015-04-28 Renesas Electronics Corporation Semiconductor integrated circuit device
US9104499B2 (en) 2010-12-21 2015-08-11 Qualcomm Incorporated System for minimizing resource latency between processor application states in a portable computing device by scheduling resource state set transitions
US9177534B2 (en) 2013-03-15 2015-11-03 Intel Corporation Data transmission for display partial update
CN105137774A (en) * 2015-07-29 2015-12-09 青岛海尔智能家电科技有限公司 Intelligent household appliance control method, device and mobile terminal
US9274827B2 (en) 2011-12-28 2016-03-01 Fujitsu Limited Data processing apparatus, transmitting apparatus, transmission control method, scheduling method, and computer product
JP2017111745A (en) * 2015-12-18 2017-06-22 ルネサスエレクトロニクス株式会社 Semiconductor device, semiconductor system, and method for controlling the semiconductor device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015064676A (en) 2013-09-24 2015-04-09 株式会社東芝 Information processing device, semiconductor device, information processing method, and program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04195619A (en) * 1990-11-28 1992-07-15 Hitachi Ltd Power consumption control system
JPH10143287A (en) * 1996-11-07 1998-05-29 Fujitsu Ltd Information processor
JP2000092254A (en) * 1998-09-11 2000-03-31 Ricoh Co Ltd Control method for facsimile equipment
JP2000173152A (en) * 1998-11-27 2000-06-23 Internatl Business Mach Corp <Ibm> Energy consumption reducing method
JP2001034437A (en) * 1999-07-22 2001-02-09 Minolta Co Ltd Picture forming device and its power controlling method and computer readable storage medium recording power control program
JP2001318742A (en) * 2000-05-08 2001-11-16 Mitsubishi Electric Corp Computer system and computer readable recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04195619A (en) * 1990-11-28 1992-07-15 Hitachi Ltd Power consumption control system
JPH10143287A (en) * 1996-11-07 1998-05-29 Fujitsu Ltd Information processor
JP2000092254A (en) * 1998-09-11 2000-03-31 Ricoh Co Ltd Control method for facsimile equipment
JP2000173152A (en) * 1998-11-27 2000-06-23 Internatl Business Mach Corp <Ibm> Energy consumption reducing method
JP2001034437A (en) * 1999-07-22 2001-02-09 Minolta Co Ltd Picture forming device and its power controlling method and computer readable storage medium recording power control program
JP2001318742A (en) * 2000-05-08 2001-11-16 Mitsubishi Electric Corp Computer system and computer readable recording medium

Cited By (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008018328A1 (en) 2006-08-11 2008-02-14 Nec Corporation Wireless communication terminal, processor thereof, and wireless communication terminal power management method
US8971972B2 (en) 2006-08-11 2015-03-03 Lenovo Innovations Limited (Hong Kong) Power savings mode management of wireless communication terminal based on data communication rate
US8516441B2 (en) 2007-03-08 2013-08-20 Fujitsu Semiconductor Limited Software optimization device and software optimization method
US9019285B2 (en) 2007-03-15 2015-04-28 Renesas Electronics Corporation Semiconductor integrated circuit device
KR101592055B1 (en) * 2008-05-13 2016-02-04 시놉시스, 인크. Power manager and method for managing power
US9459679B2 (en) 2008-05-13 2016-10-04 Synopsys, Inc. Power manager and method for managing power
JP2011521350A (en) * 2008-05-13 2011-07-21 ブイエル シー.ブイ. Power manager and power management method
JP2010113641A (en) * 2008-11-10 2010-05-20 Fujitsu Ltd Operation method of processor system and processor system
US10983585B2 (en) 2008-12-31 2021-04-20 Intel Corporation Platform and processor power management
US11740686B2 (en) 2008-12-31 2023-08-29 Tahoe Research, Ltd. Platform and processor power management
JP2010191945A (en) * 2008-12-31 2010-09-02 Intel Corp Platform and processor power management
US8898499B2 (en) 2008-12-31 2014-11-25 Intel Corporation Platform and processor power management
JP2010282585A (en) * 2009-06-08 2010-12-16 Fujitsu Ltd Power management circuit, power management method and power management program
JP2011076206A (en) * 2009-09-29 2011-04-14 Brother Industries Ltd Portable printer
JP2011108045A (en) * 2009-11-18 2011-06-02 Hitachi Ltd Computer system, management server and power reduction method
WO2011061870A1 (en) * 2009-11-18 2011-05-26 株式会社日立製作所 Computer system, management server, and method for reducing power
JP2011186591A (en) * 2010-03-05 2011-09-22 Renesas Electronics Corp Processor and control method therefor
US9104499B2 (en) 2010-12-21 2015-08-11 Qualcomm Incorporated System for minimizing resource latency between processor application states in a portable computing device by scheduling resource state set transitions
JP2014503883A (en) * 2010-12-21 2014-02-13 クアルコム,インコーポレイテッド Method and system for a processor of a portable computing device to quickly enter and exit a sleep state
US9285856B2 (en) 2010-12-21 2016-03-15 Qualcomm Incorporated Method and system for rapid entry into and for rapid exiting from sleep states for processors of a portable computing device
JP2012198749A (en) * 2011-03-22 2012-10-18 Nec Corp Information processing device, control method thereof, and program
JP2014517928A (en) * 2011-04-01 2014-07-24 インテル コーポレイション Controlling platform power consumption by selectively updating the displayed image
JP2013092839A (en) * 2011-10-24 2013-05-16 Canon Inc Power supply controller, method of controlling power supply controller, and program
US8954980B2 (en) 2011-11-11 2015-02-10 Qualcomm Incorporated Conserving power through work load estimation for a portable computing device using scheduled resource set transitions
US8954983B2 (en) 2011-11-11 2015-02-10 Qualcomm Incorporated Conserving power through work load estimation for a portable computing device using scheduled resource set transitions
WO2013073013A1 (en) * 2011-11-15 2013-05-23 富士通株式会社 Power control device, electronic computer and power control method
JPWO2013073013A1 (en) * 2011-11-15 2015-04-02 富士通株式会社 Power control apparatus, electronic computer, and power control method
US9639905B2 (en) 2011-11-15 2017-05-02 Fujitsu Limited Power control apparatus, electronic computer, and power control method
US9274827B2 (en) 2011-12-28 2016-03-01 Fujitsu Limited Data processing apparatus, transmitting apparatus, transmission control method, scheduling method, and computer product
JP2013196472A (en) * 2012-03-21 2013-09-30 Fuji Xerox Co Ltd Information processor and power saving program for information processor
JP2013206335A (en) * 2012-03-29 2013-10-07 Mega Chips Corp Signal processor
JP2013093052A (en) * 2013-02-04 2013-05-16 Nec Infrontia Corp Computer device and cpu clock adjustment method
US9177534B2 (en) 2013-03-15 2015-11-03 Intel Corporation Data transmission for display partial update
JP2014183400A (en) * 2013-03-18 2014-09-29 Canon Inc Semiconductor integrated circuit and control method
CN105137774B (en) * 2015-07-29 2021-07-06 青岛海尔智能家电科技有限公司 Intelligent household appliance control method and device and mobile terminal
CN105137774A (en) * 2015-07-29 2015-12-09 青岛海尔智能家电科技有限公司 Intelligent household appliance control method, device and mobile terminal
JP2017111745A (en) * 2015-12-18 2017-06-22 ルネサスエレクトロニクス株式会社 Semiconductor device, semiconductor system, and method for controlling the semiconductor device

Also Published As

Publication number Publication date
JP4749793B2 (en) 2011-08-17

Similar Documents

Publication Publication Date Title
JP4749793B2 (en) Power saving processing apparatus, power saving processing method, and power saving processing program
US7360106B2 (en) Power-saving processing unit, power-saving processing method and program record medium
US8656196B2 (en) Hardware automatic performance state transitions in system on processor sleep and wake events
US8145928B2 (en) Methods and systems for power management in a data processing system
US8695008B2 (en) Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device
JP5312478B2 (en) Data processor performance prediction
JP5388864B2 (en) Clock control apparatus, clock control method, clock control program, and integrated circuit
US9477296B2 (en) Apparatus and method for controlling power of electronic device having multi-core
EP3332306B1 (en) System and method for cache aware low power mode control in a portable computing device
US9632563B2 (en) Methods and systems for time keeping in a data processing system
JP5662478B2 (en) System and method for sampling data in a central processing unit
JP2006243864A (en) Processor and information processing method
WO2012036954A2 (en) Scheduling amongst multiple processors
JP5783348B2 (en) Control device, control program, and image forming apparatus
JP2002082743A (en) Electronic equipment and storage medium stored with electronic equipment control program
JP2015106167A (en) Information processing device, information processing method, and storage medium
AU2011218741B2 (en) Methods and systems for power management in a data processing system
JP2008243220A (en) Information processing communication device
JP2009122828A (en) Central processing unit, controller and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080416

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080416

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100316

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100510

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110215

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110406

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110426

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110518

R150 Certificate of patent or registration of utility model

Ref document number: 4749793

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140527

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees