JP2004030100A - Electric power management method, and computer - Google Patents

Electric power management method, and computer Download PDF

Info

Publication number
JP2004030100A
JP2004030100A JP2002183879A JP2002183879A JP2004030100A JP 2004030100 A JP2004030100 A JP 2004030100A JP 2002183879 A JP2002183879 A JP 2002183879A JP 2002183879 A JP2002183879 A JP 2002183879A JP 2004030100 A JP2004030100 A JP 2004030100A
Authority
JP
Japan
Prior art keywords
hardware
power management
function
power
information
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.)
Abandoned
Application number
JP2002183879A
Other languages
Japanese (ja)
Inventor
Yuichi Tokunaga
徳永 雄一
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2002183879A priority Critical patent/JP2004030100A/en
Publication of JP2004030100A publication Critical patent/JP2004030100A/en
Abandoned legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an electric power management method and a computer by which electric power can be managed scrupulously with a high responsiveness. <P>SOLUTION: The computer comprises: a corresponding information management means managing an executing function and information on hardware corresponding to the function; an electric power management means managing the power of the specified hardware based on the information managed by the corresponding information management means; and a function request means requesting the start or suspension of the function to the power management means. The electric power management means manages the power based on the request by the function request means. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
この発明は、主に複数のアプリケーションを実行する、LSIを含む計算機において問題となる消費電力を低減する技術に関するものである。
【0002】
【従来の技術】
図6は、例えば携帯端末等で用いられる従来の電力管理方法を用いた計算機の構成を示す説明図である。図6において、100はCPU、101はSRAM、102はフラッシュメモリ、103は周辺IP(Intellectual Property;回路もしくはLSIのロジックブロック)、104は電源制御回路、105はクロック制御回路、106は全体のクロック及び電源を制御する電力管理IP、1061は電力管理IP106内の電力管理レジスタ、200は電力を管理するオペレーティングシステム(以下OSと呼ぶ)、201はOS200からの通知に基づいて電力管理IP106に指示する電力管理ドライバ、2011は電力管理ドライバ201内のハードウェア制御手段である。ここで、CPU100、SRAM101、フラッシュメモリ102、周辺IP103、電源制御回路104、クロック制御回路105、電力管理IP106、電力管理レジスタ1061はハードウェア層に含まれ、OS200、電力管理ドライバ201、ハードウェア制御手段2011はドライバ層に含まれる。
【0003】
次に動作について説明する。OS200は、実行タスクを管理しており、実行すべきタスクが存在しなくなったとき、システム的にアイドル状態であることを検知し、電力管理ドライバ201に対して低電力モードへの移行処理を要求する。電力管理ドライバ201内のハードウェア制御手段2011は、低電力モードへ移行するための処理として、SRAM101等の揮発性メモリデータと各周辺IP103のレジスタ情報を、ソフトウェア処理を用いてフラッシュメモリ102等の不揮発性メモリへバックアップし、電力管理IP106に対しクロック停止、電源降下を要求する。電力管理IP106は、ハードウェア制御手段2011からの要求に基づいて電力管理レジスタ1061を変更し、変更後のレジスタ値に基づいて、電力制御回路104、クロック制御回路105に対して、電源制御信号、クロック制御信号をそれぞれ出力する。電源制御回路104及びクロック制御回路105は、電力管理IP106からの制御信号に基づいて内部電源及び内部クロックを低電力モードに変更する。低電力モードへの移行作業中は、システムが不安定になるため、OS200は低電力モードへの移行作業を高い優先度で処理し、この間に別タスク起動が発生しても、処理されない。
【0004】
低電力モードに移行完了後に割込みが発生した時、電力管理IP106がこれを検知し、電源制御回路104やクロック制御回路105を介して電源、クロックを復帰する。またさらに、OS200が復帰処理を電力管理ドライバ201へ要求し、電力管理ドライバ201内のハードウェア制御手段2011が、フラッシュメモリ102等の不揮発性メモリ内のバックアップデータを、SRAM101等の揮発性メモリや各周辺IP103のレジスタへ戻し、システムを通常状態に復帰する。
【0005】
【発明が解決しようとする課題】
以上のような従来の電力管理方法を用いた計算機では、システムがアイドル状態にならなければ低電力モードへ移行しないため、きめ細かな電力制御ができないという問題があった。
【0006】
また、バックアップ処理、電源・クロック制御をドライバがソフトウェア処理を用いて実施するため、モード移行処理に時間がかかり、低電力モード中の割込に対し応答性能が悪いという問題があった。
【0007】
この発明は上記のような問題点を解決するためになされたもので、応答性がよく、きめ細かな電力制御が可能な電力管理方法及び計算機を提供することを目的とする。
【0008】
【課題を解決するための手段】
この発明に係る電力管理方法は、実行する機能とその機能に対応するハードウェアの情報を管理し、前記管理された情報に基づいて、所定のハードウェアの電力を管理するものである。
【0009】
この発明に係る計算機は、実行する機能とその機能に対応するハードウェアの情報を管理する対応情報管理手段と、前記対応情報管理手段により管理された情報に基づいて、所定のハードウェアの電力を管理する電力管理手段とを備えるものである。
【0010】
また、前記機能の起動または停止を前記電力管理手段に要求する機能要求手段を備えるとともに、前記電力管理手段は、前記機能要求手段による要求に基づいて電力を管理するものである。
【0011】
また、前記電力管理手段は、所定のハードウェアの動作開始時期を制御するものである。
【0012】
また、前記ハードウェアは揮発性記憶手段を備えるとともに、前記ハードウェアとバスを介して接続され、バスマスタ機能と不揮発性記憶手段とを有し、前記ハードウェアに対応する揮発性記憶手段に記憶された情報を、前記バスマスタ機能を用いて前記バスを介して前記不揮発性記憶手段に記憶する揮発性情報記憶手段を備えるものである。
【0013】
【発明の実施の形態】
実施の形態1.
図1は、本実施の形態1における電力管理方法を用いた計算機の構成を示す説明図である。図1において、10はCPU、11はSRAM、12はフラッシュメモリ、13は周辺IP、14は電源制御回路、15はクロック制御回路、16は電力管理IP、20はオペレーティングシステム、21は電力管理ドライバ、30(30a、30b)はアプリケーションのメインタスクである。また、周辺IP13はシリアルI/F131と通信I/F132とLCDコントローラ133とを備え、電力管理IPは電力管理レジスタ161を備え、電力管理ドライバ21は要求管理手段211とハードウェア制御手段212と機能−ハードウェア対応情報213とを備え、メインタスク30は複数のタスク301a〜301d(通信処理、処理優先度設定、LCD表示、キー入力処理等)から構成される。図1の計算機は、物理的な回路やLSI論理ロジックで構成されるハードウェア層、これをアプリケーションとは独立し集中制御するソフトウェアであるドライバ層、そしてユーザにサービスを提供するソフトウェアであるアプリケーション層から構成される。
なお、機能−ハードウェア対応情報213が対応情報管理手段に相当し、電力管理ドライバ21、電力管理IP16、電源制御回路14、クロック制御回路15が電力管理手段に相当し、タスク301が機能要求手段に相当する。
【0014】
ハードウェア層において、電力管理IP16は、クロック制御回路15を制御するクロック制御信号を備えており、CPU10、SRAM11、各種周辺IP13へのクロックの周波数切替、停止を通知することができる。電力管理IP16はさらに、電源制御回路14を制御する電源制御信号も備えており、CPU10、SRAM11、フラッシュメモリ12、周辺IP13の電源電圧切替、電源断を通知することができる。これらの制御は、CPU10から電力管理IP16の電力管理レジスタ161をアクセスすることで実施される。
【0015】
ドライバ層において、OS20は、実行要求のあるタスク301の起動や、割込み等によるタスク301の中断、他タスク301への切替を管理する。電力管理ドライバ21は、アプリケーションおよびOS20から呼び出され、要求機能を復帰、停止するためのデータバックアップや、電力管理IP16の制御を行う。
【0016】
アプリケーション層において、各メインタスク30a、30bは、1つ、もしくは複数のプログラム単位、すなわちタスク301から構成され、用途によって、キー入力の処理(301d)、ディスプレイ表示(301c)、優先度処理(301b)、通信処理(301a)といった機能を用いて、各種サービスを実現している。
【0017】
次に、動作について説明する。外部割込みや、他タスクにより、あるアプリケーションを実行する要求がなされると、OS20は要求されたアプリケーションのメインタスク30aを起動する。ここでこのアプリケーション実行上必ず必要となる機能を起動するために、電力管理ドライバ21へ起動を要求する。機能とは、ネットワークや無線等の通信機能(301a)、優先度処理機能(301b)、ディスプレイ等の表示機能(301c)、キーボード等の入力機能(301d)などを指す。例えば、あるアプリケーションを実行するにあたり、絶えずディスプレイに表示することが判っていれば、LCD表示の起動を要求する。また、ある条件によってのみ使われるような限定される機能はここでは要求せず、機能使用が確定した時点で起動要求する。例えば、ある画像処理を行った後で、ネットワークを介して通信を行う場合、初期段階では通信機能を使用しないため、通信機能を使用する段階で通信処理の起動要求を行う。
【0018】
電力管理ドライバ21では、要求管理手段211がメインタスク30aからの起動要求を受け、この要求管理手段211からの情報に基づいてハードウェア制御手段212が機能実行に必要なハードウェアの判定を行う。各機能は複数のハードウェアの動作によって成り立つ。ハードウェア制御手段212は、機能−ハードウェア対応情報213を管理し、これを参照して起動すべきハードウェアを判定し、電力管理IP16へ電源の起動、クロックの起動、レジスタ情報の復元等を実行する。
【0019】
図2は、実施の形態1における機能−ハードウェア対応情報213の構成例を示す説明図である。例えば、メインタスク30aからのLCD表示の起動要求を要求管理手段211が受けた場合、この要求管理手段211からの情報に基づいて、ハードウェア制御手段212が機能実行に必要なハードウェアの判定を行う。ハードウェア制御手段212は、機能−ハードウェア対応情報213を参照し、LCD表示機能の場合、起動すべきハードウェアがLCDコントローラ133、フラッシュメモリ12、処理のためのCPU10であることを判定する。これにより、ハードウェア制御手段212は、周辺IP電源ON、LCDコントローラクロックON、レジスタ復元、フラッシュメモリ電源Up、CPU性能20pointUpを指示する信号を電力管理IP16に通知する。なお、図2の例では、CPUなどは起動、停止だけでなく多段階に処理性能を制御できるよう、CPUの必要処理性能を1PointUp、10PointDown等段階分けにして機能−ハードウェア対応情報213に付加している。
【0020】
また、アプリケーション実行中に、今後使うことのなくなった機能、使う頻度の少ない機能に対して、メインタスク30aは電力管理ドライバ21に停止要求を行う。電力管理ドライバ21の要求管理手段211が要求を受け、この要求管理手段211からの情報に基づき、また機能−ハードウェア対応情報213を参照して、ハードウェア制御手段212が停止するハードウェアを特定する。このとき、他の起動中の機能に対応するハードウェアと停止対象のハードウェアが重複する場合は停止しない。CPU10の処理性能は、停止対象の機能に対する必要性能分だけを減ずる。そして、ハードウェア制御手段212は、停止すると判定したハードウェアを停止するよう電力管理IP16に指示する。
【0021】
例えば、タスク301a(通信処理)とタスク301c(LCD表示)の実行後に、タスク301aで使用した通信機能を今後使うことがなくなった場合、メインタスク30aは電力管理ドライバ21に通信機能の停止要求を行う。電力管理ドライバ21の要求管理手段211が停止要求を受け、この要求管理手段211からの情報に基づき、また機能−ハードウェア対応情報213を参照して、ハードウェア制御手段212が、通信機能を停止するハードウェアが通信I/F132、フラッシュメモリ12、SRAM11、CPU10であることを判定する。ただし、LCD表示は今後も実行されることから、LCD表示でも使用しているフラッシュメモリ12とCPU10は停止しない。したがって、ハードウェア制御手段212は、通信I/F132とSRAM11を停止すべく、通信I/FクロックOFF、周辺IP電源OFF、SRAM電源Downを指示する信号を電力管理IP16に通知する。また、ハードウェア制御手段212は、CPU10は停止しないが、通信機能の停止分だけ処理性能を減ずる指示(CPU性能10PointDown)を電力管理IP16に通知する。さらに、停止する通信I/F132は揮発性メモリに情報を持っていることから、ハードウェア制御手段212は、ハードウェア層の内部バスを介して、ソフトウェアで通信I/F132の揮発性メモリのレジスタ情報等について不揮発性メモリであるフラッシュメモリ12へのバックアップを行う。
【0022】
そして、ハードウェア層において、電力管理IP16は、ハードウェア制御手段212からの指示信号に基づいて電力管理レジスタ161を変更し、変更後のレジスタ値に基づいて、電源制御回路14、クロック制御回路15に対して、電源制御信号、クロック制御信号をそれぞれ出力する。電源制御回路14、クロック制御回路15は、通知された制御信号に基づいて、SRAM11や周辺IP13の電源やクロックを変更する。
【0023】
例えば、電力管理IP16は、ハードウェア制御手段212からの、通信I/FクロックOFF、周辺IP電源OFF、SRAM電源Down、CPU性能10PointDownという指示信号に基づいて電力管理レジスタ161を変更する。電力管理IP16は、変更後のレジスタ値に基づき、周辺IP電源OFF、SRAM電源Downという電源制御信号を、電源制御回路14に対して出力する。また、同様に通信I/FクロックOFFというクロック制御信号を、クロック制御回路15に対して出力する。また、CPU性能20PointDownに対応する電源制御信号及びクロック制御信号を、電源制御回路14及びクロック制御回路15に対して出力する。これらの制御信号を受けた電源制御回路14及びクロック制御回路15は、通信I/FクロックOFF、周辺IP電源OFF、SRAM電源Down、CPU性能10PointDownを行う。
【0024】
また、割込みや他の高優先度タスク起動要求によって、OS20が現アプリケーションを強制終了し別タスクに切り替える場合、OS20はタスクの切り替え指示を電力管理ドライバ21へ通知する。電力管理ドライバ21は現アプリケーションで起動された機能を停止する。
【0025】
例えば、割込みや他の高優先度タスク起動要求によって、OS20が現アプリケーションのメインタスク30aを別のメインタスク30bに切り替える場合、OS20はタスクの切り替え指示を電力管理ドライバ21へ通知する。そして、電力管理ドライバ21は、ハードウェア層の内部バスを介して、ソフトウェアで周辺IP13の揮発性メモリのレジスタ情報等について不揮発性メモリであるフラッシュメモリ12へのバックアップを行うとともに、上述のように電力管理IP16を介してメインタスク30aに対応する起動中のハードウェアを停止する。
【0026】
以上説明したように、本実施の形態1における計算機では、アプリケーション実行上必要となる機能と、その機能実行に必要なハードウェアとを判定し、各ハードウェア毎に電力管理を行うことにより、必要なときに必要なハードウェアだけ活性化するきめ細かな電力管理を行うことができ、システムの消費電力を低減することができる。
また、アプリケーション実行上必要となる機能と、その機能実行に必要なハードウェアとの判定を、ドライバ層の電力管理ドライバが機能とハードウェアとの対応情報を用いて行うことにより、アプリケーション層にハードウェアを見せることなく、個別ハードウェアに対応した電力管理を行うことができる。
【0027】
なお、本実施の形態1では、タスクが機能の起動、停止を要求する場合について説明したが、どの機能を起動、停止するかが分かればよく、例えば機能の実行スケジュールが決まっていれば、そのスケジュールに従って機能を起動、停止してもよく、これに限られない。
【0028】
また、本実施の形態1では、メインタスク30aにおける機能の起動、停止をプログラム作成のときに人手で追加することを想定しているが、コンパイラ等によって自動追加とすることもできる。この場合は、プログラム内の各機能の呼び出し箇所をコンパイラが認識し、呼び出された機能に応じて起動、停止の要求をコンパイラが自動追加する。例えばメインタスク30aをコンパイルした時、コンパイラはプログラムに書かれた各機能301a〜cの呼び出しを認識し、認識した機能の起動、停止を追加する。
【0029】
実施の形態2.
上記実施形態1では、ハードウェアの電源停止の指示があればそのまま停止処理を開始する場合について説明したが、本実施の形態2では、ハードウェアの電源停止の際にタイマ機能を用いる場合について説明する。
【0030】
ハードウェアの停止において、電源停止を伴う場合は、不揮発性メモリのバックアップが必要な場合もあり、処理に時間を要することがある。また、一度降下した電源電圧を上昇させ、安定するまでの時間待ちがあり、停止から直ちに復帰することは難しい。このため、一度ハードウェアの停止処理を開始すると、停止処理開始直後の起動要求に対して安定した電源を供給するまでに、大幅な時間ロスが発生してしまう。
【0031】
そこで本実施の形態2では、電力管理ドライバ21がタイマ機能を備える場合について説明する。
図3は、本実施の形態2における電力管理方法を用いた計算機の構成を示す説明図である。図3において、214は停止処理開始タイマである。その他同じ符号を付したものは図1と同様のため、説明は省略する。
図4は、本実施の形態2における機能−ハードウェア対応情報213の構成例を示す説明図である。図4では、図2の構成に起動ハードウェア情報として停止処理開始時間を追加している。
【0032】
次に図3、図4を用いて、停止処理開始タイマ214を備えた電力管理ドライバ21の動作について説明する。アプリケーション実行中に、今後使うことのなくなった機能、使う頻度の少ない機能に対して、メインタスク30aが電力管理ドライバ21に停止要求を行う場合について説明する。電力管理ドライバ21の要求管理手段211が要求を受け、この要求管理手段211からの情報に基づき、また機能−ハードウェア対応情報213を参照して、ハードウェア制御手段212が停止するハードウェアとその停止処理開始時間を特定する。このとき、他の起動中の機能に対応するハードウェアと停止対象のハードウェアが重複する場合は停止しない。CPU10の処理性能は、停止対象の機能に対する必要性能分だけを減ずる。そして、ハードウェア制御手段212は、停止すると判定したハードウェアについては、停止処理開始タイマ214を用いて、そのハードウェアに対応する停止処理開始時間分だけ遅らせてから停止処理の電力管理IPに指示する。これにより、タスクの切替等で、前タスクで停止要求した機能を、次タスクで再起動する場合、この停止処理開始時間の範囲内に再起動が要求されるため、停止処理はキャンセルされ、停止、復帰の時間ロスを防ぐことができる。
【0033】
例えば、タスク301a(通信処理)とタスク301c(LCD表示)の実行後に、タスク301aで使用した通信機能を今後使うことがなくなった場合、メインタスク30aは電力管理ドライバ21に通信機能の停止要求を行う。電力管理ドライバ21の要求管理手段211が停止要求を受け、この要求管理手段211からの情報に基づき、また機能−ハードウェア対応情報213を参照して、ハードウェア制御手段212が、通信機能を停止するハードウェアが通信I/F132、フラッシュメモリ12、SRAM11、CPU10であり、それぞれの停止処理開始時間が10msec、10msec、5msec、0msecであることを判定する。ただし、LCD表示は今後も実行されることから、LCD表示でも使用しているフラッシュメモリ12とCPU10は停止しない。したがって、ハードウェア制御手段212は、停止処理開始タイマ214を用い、通信I/F132を停止すべく、通信I/FクロックOFF、周辺IP電源OFFを指示する信号を10msec遅らせて電力管理IP16に通知する。同様にハードウェア制御手段212は、停止処理開始タイマ214を用い、SRAM11を停止すべく、SRAM電源Downを指示する信号を5msec遅らせて電力管理IP16に通知する。また、ハードウェア制御手段212は、CPU10は停止しないが、通信機能の停止分だけ処理性能を減ずる指示(CPU性能10PointDown)を電力管理IP16に通知する。さらに、ハードウェア制御手段212は、停止処理開始タイマ214を用いて処理開始時間を10msec遅らせて電力管理IP16に通知する際、ハードウェア層の内部バスを介して、ソフトウェアで通信I/F132の揮発性メモリのレジスタ情報等について不揮発性メモリであるフラッシュメモリ12へのバックアップを行う。
【0034】
これにより、メインタスク30aにおける通信機能の停止要求が行われた直後、割込み等によりタスク30aが切り換えられ、再び電力管理ドライバ21に通信機能の起動要求が行われた場合、電力管理ドライバ21の要求管理手段211が起動要求を受け、この要求管理手段211からの情報に基づき、また機能−ハードウェア対応情報213を参照して、ハードウェア制御手段212が、通信機能を起動するハードウェアが通信I/F132、フラッシュメモリ12、SRAM11、CPU10であり、さらに先の停止要求により停止処理開始タイマ214の時間待ち中であることを認識する。そこでハードウェア制御手段212は停止処理開始タイマ214を停止し、停止要求処理を中断する。
その他の動作については上記実施の形態1と同様のため、説明は省略する。
【0035】
以上説明したように、本実施の形態2における計算機では、バックアップの必要なハードウェアに対して、停止処理開始タイマを用いて、停止要求から一定時間待機した後、停止処理を行うことにより、停止から再開の期間が短い場合に停止処理をキャンセルすることができ、タスク切替での性能劣化を防ぐことができる。
【0036】
実施の形態3.
上記実施形態1では、電力管理ドライバ21がソフトウェアで周辺IP13の揮発性メモリのレジスタ情報等について不揮発性メモリであるフラッシュメモリ12へのバックアップを行う場合について説明したが、本実施の形態3では、ハードウェアで周辺IP13の揮発性メモリの情報をバックアップする場合について説明する。
【0037】
図5は、本実施の形態3における電力管理方法を用いた計算機のハードウェア層の構成を示す説明図である。図3において、134はシリアルI/F131の内部レジスタ、135は通信I/F132の内部レジスタ、136はLCDコントローラ133の内部レジスタ、162は電力管理IP16内のバスマスタI/F、163は電力管理IP16内の不揮発性メモリであるバックアップレジスタバッファである。その他同じ符号を付したものは図1と同様であり、図5では図示しないアプリケーション層及びドライバ層も図1と同様のため、説明は省略する。
なお、電力管理IP16が揮発性情報記憶手段に相当する。
【0038】
図5を用いて、バスマスタI/F162及びバックアップレジスタバッファ163を備えた電力管理IP16の動作について説明する。電力管理IP16は、ハードウェア制御手段212からバックアップの必要なハードウェアの停止指示を受けると、この指示信号に基づいて電力管理レジスタ161を変更する。電力管理IP16は、変更後のレジスタ値に基づき、バスマスタI/F162を用いて、周辺IP13の揮発性メモリのレジスタ情報等について不揮発性メモリであるバックアップレジスタバッファ163へのバックアップを行う。そして、電力管理IP16は、このバックアップ動作の後、停止指示を受けた周辺IP13の電源を停止する。
【0039】
例えば、電力管理IP16は、ハードウェア制御手段212からバックアップの必要な通信I/F132の停止指示を受けると、この指示信号に基づいて電力管理レジスタ161を変更する。電力管理IP16は、変更後のレジスタ値に基づき、バスマスタI/F162を用いて、通信I/F132の揮発性メモリのレジスタ情報等について不揮発性メモリであるバックアップレジスタバッファ163へのバックアップを行う。そして、電力管理IP16は、このバックアップ動作の後、通信I/F132電源OFFという電源制御信号を電源制御回路14に対して出力し、この制御信号を受けた電源制御回路14が通信I/F132の電源OFFを行う。
なお、起動はこの逆の動作を行い、電源起動、レジスタ復元を電力管理IP16が行う。
【0040】
以上説明したように、本実施の形態3では、ハードウェア停止前のバックアップ処理の際、ハードウェア層の電力管理IPがバスマスタ機能を用いて、電力管理IP内のバックアップメモリに対して、ハードウェアでバックアップ処理を行うことにより、ソフトウェアが介在しないため、停止状態から再開する際の処理時間短縮化を図れると同時に、CPUの負荷上昇を防ぐことができる。
【0041】
なお、本実施の形態3では、通信I/F132のバックアップ及び電源OFFについて説明したが、シリアルI/F131やLCDコントローラ133の電源OFFやクロックOFFについても同様である。
【0042】
【発明の効果】
以上のように、実行する機能とその機能に対応するハードウェアの情報を管理する対応情報管理手段と、前記対応情報管理手段により管理された情報に基づいて、所定のハードウェアの電力を管理する電力管理手段とを備えることにより、必要なときに必要なハードウェアだけ活性化するきめ細かな電力管理を行うことができ、消費電力を低減することができるという効果がある。
【0043】
また、前記機能の起動または停止を前記電力管理手段に要求する機能要求手段を備えるとともに、前記電力管理手段は、前記機能要求手段による要求に基づいて電力を管理することにより、アプリケーション層にハードウェアを見せることなく、個別ハードウェアに対応した電力管理を行うことができるという効果がある。
【0044】
また、前記電力管理手段は、所定のハードウェアの動作開始時期を制御することにより、停止から再開の期間が短い場合に停止処理をキャンセルすることができ、タスク切替での性能劣化を防ぐことができるという効果がある。
【0045】
また、前記ハードウェアは揮発性記憶手段を備えるとともに、前記ハードウェアとバスを介して接続され、バスマスタ機能と不揮発性記憶手段とを有し、前記ハードウェアに対応する揮発性記憶手段に記憶された情報を、前記バスマスタ機能を用いて前記バスを介して前記不揮発性記憶手段に記憶する揮発性情報記憶手段を備えることにより、ソフトウェアが介在しないため、停止状態から再開する際の処理時間短縮化を図れると同時に、CPUの負荷上昇を防ぐことができるという効果がある。
【図面の簡単な説明】
【図1】実施の形態1における電力管理方法を用いた計算機の構成を示す説明図
【図2】実施の形態1における機能−ハードウェア対応情報213の構成例を示す説明図
【図3】実施の形態2における電力管理方法を用いた計算機の構成を示す説明図
【図4】実施の形態2における機能−ハードウェア対応情報213の構成例を示す説明図
【図5】実施の形態3における電力管理方法を用いた計算機のハードウェア層の構成を示す説明図
【図6】従来の電力管理方法を用いた計算機の構成を示す説明図
【符号の説明】
10 CPU
11 SRAM
12 フラッシュメモリ
13 周辺IP
14 電源制御回路
15 クロック制御回路
16 電力管理IP
20 オペレーティングシステム
21 電力管理ドライバ
30a、30b メインタスク
131 シリアルI/F
132 通信I/F
133 LCDコントローラ
134〜136 内部レジスタ
161 電力管理レジスタ
162 バスマスタI/F
163 バックアップレジスタバッファ
211 要求管理手段
212 ハードウェア制御手段
213 機能−ハードウェア対応情報
214 停止処理開始タイマ
301a〜301d タスク
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a technique for reducing power consumption, which is a problem in a computer including an LSI, which mainly executes a plurality of applications.
[0002]
[Prior art]
FIG. 6 is an explanatory diagram showing a configuration of a computer using a conventional power management method used in, for example, a mobile terminal. 6, reference numeral 100 denotes a CPU; 101, an SRAM; 102, a flash memory; 103, a peripheral IP (Intellectual Property; circuit or LSI logic block); 104, a power control circuit; 105, a clock control circuit; And a power management IP 1061 for controlling power, a power management register 1061 in the power management IP 106, an operating system (hereinafter referred to as OS) 200 for managing power, and a command 201 for the power management IP 106 based on a notification from the OS 200. A power management driver 2011 is a hardware control unit in the power management driver 201. Here, the CPU 100, the SRAM 101, the flash memory 102, the peripheral IP 103, the power control circuit 104, the clock control circuit 105, the power management IP 106, and the power management register 1061 are included in the hardware layer, and the OS 200, the power management driver 201, the hardware control Means 2011 is included in the driver layer.
[0003]
Next, the operation will be described. The OS 200 manages the execution task, and when there are no more tasks to be executed, detects that the system is in an idle state, and requests the power management driver 201 to shift to the low power mode. I do. The hardware control unit 2011 in the power management driver 201 converts volatile memory data such as the SRAM 101 and register information of each peripheral IP 103 into the flash memory 102 and the like using software processing as a process for shifting to the low power mode. The backup is performed in the non-volatile memory, and a clock stop and a power drop are requested to the power management IP 106. The power management IP 106 changes the power management register 1061 based on a request from the hardware control unit 2011, and sends a power control signal to the power control circuit 104 and the clock control circuit 105 based on the changed register value. Each outputs a clock control signal. The power control circuit 104 and the clock control circuit 105 change the internal power and the internal clock to the low power mode based on the control signal from the power management IP 106. During the transition to the low-power mode, the system becomes unstable. Therefore, the OS 200 processes the transition to the low-power mode with a high priority. Even if another task is activated during the transition, the OS 200 is not processed.
[0004]
When an interrupt occurs after the transition to the low power mode is completed, the power management IP 106 detects this and returns the power and clock via the power control circuit 104 and the clock control circuit 105. Further, the OS 200 requests the power management driver 201 to perform a recovery process, and the hardware control unit 2011 in the power management driver 201 transfers the backup data in the nonvolatile memory such as the flash memory 102 to a volatile memory such as the SRAM 101 or the like. Return to the register of each peripheral IP 103, and return the system to the normal state.
[0005]
[Problems to be solved by the invention]
In the computer using the above-described conventional power management method, there is a problem that the power does not shift to the low power mode unless the system is in an idle state, so that fine power control cannot be performed.
[0006]
In addition, since the driver performs the backup processing and the power / clock control using software processing, the mode transition processing takes a long time, and there is a problem that the response performance to the interrupt in the low power mode is poor.
[0007]
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to provide a power management method and a computer having good responsiveness and capable of performing fine power control.
[0008]
[Means for Solving the Problems]
A power management method according to the present invention manages a function to be executed and hardware information corresponding to the function, and manages power of predetermined hardware based on the managed information.
[0009]
According to the present invention, there is provided a computer which manages a function to be executed and hardware information corresponding to the function, and powers predetermined hardware based on the information managed by the corresponding information management means. Power management means for managing.
[0010]
The power management unit includes a function request unit that requests the power management unit to start or stop the function, and the power management unit manages power based on a request from the function request unit.
[0011]
Further, the power management means controls an operation start timing of predetermined hardware.
[0012]
Further, the hardware includes a volatile storage unit, is connected to the hardware via a bus, has a bus master function and a nonvolatile storage unit, and is stored in the volatile storage unit corresponding to the hardware. Volatile information storage means for storing the information stored in the nonvolatile storage means via the bus using the bus master function.
[0013]
BEST MODE FOR CARRYING OUT THE INVENTION
Embodiment 1 FIG.
FIG. 1 is an explanatory diagram illustrating a configuration of a computer using the power management method according to the first embodiment. 1, reference numeral 10 denotes a CPU, 11 denotes an SRAM, 12 denotes a flash memory, 13 denotes a peripheral IP, 14 denotes a power control circuit, 15 denotes a clock control circuit, 16 denotes a power management IP, 20 denotes an operating system, and 21 denotes a power management driver. , 30 (30a, 30b) are the main tasks of the application. The peripheral IP 13 includes a serial I / F 131, a communication I / F 132, and an LCD controller 133, the power management IP includes a power management register 161, and the power management driver 21 functions as a request management unit 211 and a hardware control unit 212. The main task 30 includes a plurality of tasks 301a to 301d (communication processing, processing priority setting, LCD display, key input processing, etc.). The computer shown in FIG. 1 includes a hardware layer composed of physical circuits and LSI logic logic, a driver layer that is software that centrally controls the hardware independently of applications, and an application layer that is software that provides services to users. Consists of
The function-hardware correspondence information 213 corresponds to correspondence information management means, the power management driver 21, the power management IP 16, the power supply control circuit 14, and the clock control circuit 15 correspond to power management means, and the task 301 is a function request means. Is equivalent to
[0014]
In the hardware layer, the power management IP 16 includes a clock control signal for controlling the clock control circuit 15, and can notify the CPU 10, the SRAM 11, and various peripheral IPs 13 of clock frequency switching and stop. The power management IP 16 further includes a power supply control signal for controlling the power supply control circuit 14, and can notify the CPU 10, the SRAM 11, the flash memory 12, and the power supply voltage switching of the peripheral IP 13 and the power-off. These controls are performed by accessing the power management register 161 of the power management IP 16 from the CPU 10.
[0015]
In the driver layer, the OS 20 manages activation of the task 301 having an execution request, interruption of the task 301 due to an interruption, and switching to another task 301. The power management driver 21 is called from the application and the OS 20 and performs data backup for restoring and stopping the requested function and controls the power management IP 16.
[0016]
In the application layer, each of the main tasks 30a and 30b is composed of one or a plurality of program units, that is, tasks 301. Depending on the application, key input processing (301d), display display (301c), priority processing (301b) ) And communication processing (301a) to realize various services.
[0017]
Next, the operation will be described. When a request to execute a certain application is made by an external interrupt or another task, the OS 20 activates a main task 30a of the requested application. Here, in order to activate a function that is absolutely necessary for executing the application, the power management driver 21 is requested to activate. The function refers to a communication function (301a) such as a network or wireless communication, a priority processing function (301b), a display function (301c) such as a display, an input function (301d) such as a keyboard, and the like. For example, when executing an application, if it is known that the image is to be constantly displayed on the display, a request to start the LCD display is made. In addition, a limited function that is used only under certain conditions is not requested here, and an activation request is issued when the use of the function is determined. For example, when performing communication via a network after performing a certain image process, the communication function is not used in the initial stage, and therefore, a request to start the communication process is made at the stage of using the communication function.
[0018]
In the power management driver 21, the request management unit 211 receives a start request from the main task 30a, and based on information from the request management unit 211, the hardware control unit 212 determines hardware necessary for executing the function. Each function is realized by the operation of a plurality of hardware. The hardware control unit 212 manages the function-hardware correspondence information 213, determines the hardware to be activated by referring to the information, and starts the power management, activates the clock, restores the register information, and the like to the power management IP 16. Execute.
[0019]
FIG. 2 is an explanatory diagram illustrating a configuration example of the function-hardware correspondence information 213 according to the first embodiment. For example, when the request management unit 211 receives an LCD display activation request from the main task 30a, the hardware control unit 212 determines hardware necessary for executing the function based on information from the request management unit 211. Do. The hardware control unit 212 refers to the function-hardware correspondence information 213, and in the case of the LCD display function, determines that the hardware to be started is the LCD controller 133, the flash memory 12, and the CPU 10 for processing. As a result, the hardware control unit 212 notifies the power management IP 16 of signals for instructing peripheral IP power ON, LCD controller clock ON, register restoration, flash memory power Up, and CPU performance 20 point Up. In the example of FIG. 2, the required processing performance of the CPU is divided into stages such as 1 PointUp and 10 PointDown and added to the function-hardware correspondence information 213 so that the CPU and the like can control the processing performance in multiple stages as well as start and stop. are doing.
[0020]
Further, during the execution of the application, the main task 30a issues a stop request to the power management driver 21 for functions that are no longer used or functions that are used less frequently. The request management unit 211 of the power management driver 21 receives the request, and specifies the hardware to be stopped by the hardware control unit 212 based on the information from the request management unit 211 and with reference to the function-hardware correspondence information 213. I do. At this time, if the hardware corresponding to another activated function and the hardware to be stopped overlap, the hardware is not stopped. The processing performance of the CPU 10 reduces only the required performance for the function to be stopped. Then, the hardware control unit 212 instructs the power management IP 16 to stop the hardware determined to stop.
[0021]
For example, after the task 301a (communication processing) and the task 301c (LCD display) are executed, if the communication function used in the task 301a is no longer used, the main task 30a issues a request to the power management driver 21 to stop the communication function. Do. The request management unit 211 of the power management driver 21 receives the stop request, and based on the information from the request management unit 211 and referring to the function-hardware correspondence information 213, the hardware control unit 212 stops the communication function. It is determined that the hardware to be executed is the communication I / F 132, the flash memory 12, the SRAM 11, and the CPU 10. However, since the LCD display will be executed in the future, the flash memory 12 and the CPU 10 used for the LCD display will not be stopped. Therefore, the hardware control unit 212 notifies the power management IP 16 of a signal instructing the communication I / F clock OFF, peripheral IP power OFF, and SRAM power Down to stop the communication I / F 132 and the SRAM 11. Also, the hardware control unit 212 notifies the power management IP 16 of an instruction (CPU performance 10 Point Down) to reduce the processing performance by the amount of the communication function stop, without stopping the CPU 10. Further, since the communication I / F 132 to be stopped has information in the volatile memory, the hardware control unit 212 uses software to register the volatile memory in the volatile memory of the communication I / F 132 via the internal bus of the hardware layer. The information and the like are backed up to the flash memory 12 which is a nonvolatile memory.
[0022]
Then, in the hardware layer, the power management IP 16 changes the power management register 161 based on the instruction signal from the hardware control unit 212 and, based on the changed register value, the power control circuit 14 and the clock control circuit 15. Output a power control signal and a clock control signal. The power supply control circuit 14 and the clock control circuit 15 change the power supply and clock of the SRAM 11 and the peripheral IP 13 based on the notified control signal.
[0023]
For example, the power management IP 16 changes the power management register 161 based on an instruction signal from the hardware control unit 212 that the communication I / F clock is OFF, the peripheral IP power is OFF, the SRAM power is Down, and the CPU performance is 10 Point Down. The power management IP 16 outputs a power control signal of peripheral IP power OFF and SRAM power Down to the power control circuit 14 based on the changed register value. Similarly, a clock control signal of communication I / F clock OFF is output to the clock control circuit 15. The power supply control circuit 14 also outputs a power control signal and a clock control signal corresponding to the CPU performance 20PointDown to the power control circuit 14 and the clock control circuit 15. The power supply control circuit 14 and the clock control circuit 15 receiving these control signals perform communication I / F clock OFF, peripheral IP power OFF, SRAM power Down, and CPU performance 10 Point Down.
[0024]
Further, when the OS 20 forcibly terminates the current application and switches to another task due to an interrupt or another high-priority task activation request, the OS 20 notifies the power management driver 21 of a task switching instruction. The power management driver 21 stops the function started by the current application.
[0025]
For example, when the OS 20 switches the main task 30a of the current application to another main task 30b due to an interrupt or another high-priority task activation request, the OS 20 notifies the power management driver 21 of a task switching instruction. Then, the power management driver 21 backs up the register information of the volatile memory of the peripheral IP 13 and the like to the flash memory 12 which is the nonvolatile memory by software via the internal bus of the hardware layer, as described above. The running hardware corresponding to the main task 30a is stopped via the power management IP16.
[0026]
As described above, the computer according to the first embodiment determines the functions required for executing an application and the hardware necessary for executing the functions, and performs power management for each hardware to determine the necessary functions. In this case, fine power management for activating only necessary hardware at any time can be performed, and power consumption of the system can be reduced.
In addition, the power management driver in the driver layer determines the functions necessary for executing the application and the hardware necessary for executing the functions by using the correspondence information between the functions and the hardware, so that the hardware in the application layer is determined. Power management corresponding to individual hardware can be performed without showing hardware.
[0027]
In the first embodiment, the case where the task requests activation and stop of a function has been described. However, it is only necessary to know which function to start and stop. For example, if a function execution schedule is determined, the The function may be started and stopped according to a schedule, but is not limited to this.
[0028]
Further, in the first embodiment, it is assumed that the activation and stop of the functions in the main task 30a are manually added at the time of creating a program, but the functions can be automatically added by a compiler or the like. In this case, the compiler recognizes the calling location of each function in the program, and the compiler automatically adds a start / stop request according to the called function. For example, when compiling the main task 30a, the compiler recognizes calls of the functions 301a to 301c written in the program, and adds activation and stoppage of the recognized functions.
[0029]
Embodiment 2 FIG.
In the first embodiment, the case where the stop processing is started as soon as the hardware power stop instruction is given has been described. In the second embodiment, the case where the timer function is used when the hardware power is stopped will be described. I do.
[0030]
When stopping the hardware involves stopping the power supply, a backup of the non-volatile memory may be required, and processing may take time. In addition, there is a waiting time until the power supply voltage once dropped is increased and stabilized, and it is difficult to immediately return from the stop. Therefore, once the hardware stop processing is started, a significant time loss occurs until stable power is supplied in response to a start request immediately after the start of the stop processing.
[0031]
Therefore, in the second embodiment, a case where the power management driver 21 has a timer function will be described.
FIG. 3 is an explanatory diagram illustrating a configuration of a computer using the power management method according to the second embodiment. In FIG. 3, reference numeral 214 denotes a stop processing start timer. Other components denoted by the same reference numerals are the same as those in FIG.
FIG. 4 is an explanatory diagram showing a configuration example of the function-hardware correspondence information 213 according to the second embodiment. In FIG. 4, a stop processing start time is added to the configuration of FIG. 2 as start-up hardware information.
[0032]
Next, the operation of the power management driver 21 including the stop processing start timer 214 will be described with reference to FIGS. A case will be described in which the main task 30a issues a stop request to the power management driver 21 for a function that is no longer used or a function that is used less frequently during execution of an application. The request management unit 211 of the power management driver 21 receives the request, and based on the information from the request management unit 211 and referring to the function-hardware correspondence information 213, the hardware that the hardware control unit 212 stops and Specify the stop processing start time. At this time, if the hardware corresponding to another activated function and the hardware to be stopped overlap, the hardware is not stopped. The processing performance of the CPU 10 reduces only the required performance for the function to be stopped. Then, the hardware control unit 212 uses the stop processing start timer 214 to delay the hardware determined to be stopped by the stop processing start time corresponding to the hardware, and then instructs the power management IP for the stop processing. I do. As a result, when the function requested to be stopped in the previous task is restarted in the next task due to switching of tasks or the like, the restart processing is requested within the range of the stop processing start time. , It is possible to prevent a return time loss.
[0033]
For example, after the task 301a (communication processing) and the task 301c (LCD display) are executed, if the communication function used in the task 301a is no longer used, the main task 30a issues a request to the power management driver 21 to stop the communication function. Do. The request management unit 211 of the power management driver 21 receives the stop request, and based on the information from the request management unit 211 and referring to the function-hardware correspondence information 213, the hardware control unit 212 stops the communication function. The hardware to be executed is the communication I / F 132, the flash memory 12, the SRAM 11, and the CPU 10, and it is determined that the respective stop processing start times are 10 msec, 10 msec, 5 msec, and 0 msec. However, since the LCD display will be executed in the future, the flash memory 12 and the CPU 10 used for the LCD display will not be stopped. Therefore, the hardware control unit 212 uses the stop process start timer 214 to notify the power management IP 16 by delaying the signal instructing the communication I / F clock OFF and the peripheral IP power OFF by 10 msec to stop the communication I / F 132. I do. Similarly, the hardware control unit 212 uses the stop processing start timer 214 to notify the power management IP 16 by delaying the signal instructing the SRAM power down by 5 msec to stop the SRAM 11. Also, the hardware control unit 212 notifies the power management IP 16 of an instruction (CPU performance 10 Point Down) to reduce the processing performance by the amount of the communication function stop, without stopping the CPU 10. Further, when notifying the power management IP 16 by delaying the processing start time by 10 msec using the stop processing start timer 214, the hardware control unit 212 volatilizes the communication I / F 132 by software via the internal bus of the hardware layer. The register information of the non-volatile memory is backed up to the flash memory 12 which is a non-volatile memory.
[0034]
As a result, immediately after the request to stop the communication function in the main task 30a is made, the task 30a is switched by an interrupt or the like, and when the power management driver 21 is again requested to start the communication function, the request from the power management driver 21 The management unit 211 receives the activation request, and based on the information from the request management unit 211 and with reference to the function-hardware correspondence information 213, the hardware control unit 212 determines that the hardware that activates the communication function is the communication I / O. / F 132, the flash memory 12, the SRAM 11, and the CPU 10, and recognizes that the stop processing start timer 214 is waiting for the time according to the stop request. Therefore, the hardware control unit 212 stops the stop processing start timer 214 and interrupts the stop request processing.
Other operations are the same as those in the first embodiment, and a description thereof will not be repeated.
[0035]
As described above, the computer according to the second embodiment uses the stop processing start timer to wait for a certain period of time from the stop request for the hardware that needs to be backed up, and then performs the stop processing to stop the hardware. In the case where the period from the start to the restart is short, the stop processing can be canceled, and the performance degradation due to the task switching can be prevented.
[0036]
Embodiment 3 FIG.
In the first embodiment, the case where the power management driver 21 backs up the register information and the like of the volatile memory of the peripheral IP 13 to the flash memory 12 which is the non-volatile memory by the software has been described. The case where the information of the volatile memory of the peripheral IP 13 is backed up by hardware will be described.
[0037]
FIG. 5 is an explanatory diagram illustrating a configuration of a hardware layer of a computer using the power management method according to the third embodiment. 3, reference numeral 134 denotes an internal register of the serial I / F 131, 135 denotes an internal register of the communication I / F 132, 136 denotes an internal register of the LCD controller 133, 162 denotes a bus master I / F in the power management IP 16, and 163 denotes a power management IP 16 Is a backup register buffer which is a non-volatile memory in the inside. The other components denoted by the same reference numerals are the same as those in FIG. 1, and the application layer and the driver layer not shown in FIG. 5 are also the same as those in FIG.
The power management IP 16 corresponds to a volatile information storage unit.
[0038]
The operation of the power management IP 16 including the bus master I / F 162 and the backup register buffer 163 will be described with reference to FIG. The power management IP 16 changes the power management register 161 based on the instruction signal when the hardware control unit 212 receives an instruction to stop the hardware that needs backup from the hardware control unit 212. The power management IP 16 uses the bus master I / F 162 to back up the register information of the volatile memory of the peripheral IP 13 to the backup register buffer 163 which is a nonvolatile memory, based on the changed register value. Then, after this backup operation, the power management IP 16 stops the power supply of the peripheral IP 13 that has received the stop instruction.
[0039]
For example, upon receiving an instruction from the hardware control unit 212 to stop the communication I / F 132 requiring backup, the power management IP 16 changes the power management register 161 based on the instruction signal. The power management IP 16 uses the bus master I / F 162 to back up the register information and the like of the volatile memory of the communication I / F 132 to the backup register buffer 163 which is a nonvolatile memory based on the changed register value. Then, after this backup operation, the power management IP 16 outputs a power control signal indicating that the communication I / F 132 is turned off to the power control circuit 14, and the power control circuit 14 having received this control signal causes the power of the communication I / F 132 to be turned off. Turn off the power.
It should be noted that the activation is performed in the reverse operation, and the power management IP 16 performs power activation and register restoration.
[0040]
As described above, in the third embodiment, at the time of backup processing before hardware stoppage, the power management IP in the hardware layer uses the bus master function to transfer the hardware to the backup memory in the power management IP. By performing the backup processing, since software does not intervene, it is possible to reduce the processing time when resuming from a stopped state, and at the same time, it is possible to prevent an increase in the load on the CPU.
[0041]
In the third embodiment, backup and power-off of the communication I / F 132 have been described, but the same applies to power-off and clock-off of the serial I / F 131 and the LCD controller 133.
[0042]
【The invention's effect】
As described above, the correspondence information management unit that manages the function to be executed and hardware information corresponding to the function, and manages the power of predetermined hardware based on the information managed by the correspondence information management unit. By providing the power management means, it is possible to perform fine power management for activating only necessary hardware when needed, and to reduce power consumption.
[0043]
The power management unit further includes a function request unit that requests the power management unit to start or stop the function, and the power management unit manages power based on a request from the function request unit, so that a hardware There is an effect that the power management corresponding to the individual hardware can be performed without showing the information.
[0044]
In addition, the power management unit can cancel the stop process when the period from the stop to the restart is short by controlling the operation start timing of the predetermined hardware, and can prevent performance degradation due to task switching. There is an effect that can be.
[0045]
Further, the hardware includes a volatile storage unit, is connected to the hardware via a bus, has a bus master function and a nonvolatile storage unit, and is stored in the volatile storage unit corresponding to the hardware. The volatile information storage means for storing the read information in the non-volatile storage means via the bus using the bus master function, thereby reducing the processing time when resuming from a stopped state because no software is interposed. At the same time, the CPU load can be prevented from increasing.
[Brief description of the drawings]
FIG. 1 is an explanatory diagram showing a configuration of a computer using a power management method according to a first embodiment.
FIG. 2 is an explanatory diagram showing a configuration example of function-hardware correspondence information 213 according to the first embodiment;
FIG. 3 is an explanatory diagram showing a configuration of a computer using a power management method according to a second embodiment.
FIG. 4 is an explanatory diagram showing a configuration example of function-hardware correspondence information 213 according to the second embodiment;
FIG. 5 is an explanatory diagram showing a configuration of a hardware layer of a computer using the power management method according to the third embodiment.
FIG. 6 is an explanatory diagram showing a configuration of a computer using a conventional power management method.
[Explanation of symbols]
10 CPU
11 SRAM
12 Flash memory
13 Peripheral IP
14 Power supply control circuit
15 Clock control circuit
16 Power Management IP
20 Operating system
21 Power Management Driver
30a, 30b Main task
131 Serial I / F
132 Communication I / F
133 LCD controller
134 to 136 Internal register
161 Power management register
162 bus master I / F
163 Backup register buffer
211 Request management means
212 hardware control means
213 Function-Hardware Support Information
214 Stop processing start timer
301a to 301d tasks

Claims (5)

実行する機能とその機能に対応するハードウェアの情報を管理し、
前記管理された情報に基づいて、所定のハードウェアの電力を管理する
ことを特徴とする電力管理方法。
Manages information about the functions to be performed and the hardware corresponding to those functions,
A power management method, wherein power of predetermined hardware is managed based on the managed information.
実行する機能とその機能に対応するハードウェアの情報を管理する対応情報管理手段と、
前記対応情報管理手段により管理された情報に基づいて、所定のハードウェアの電力を管理する電力管理手段
とを備えたことを特徴とする計算機。
Correspondence information management means for managing information on a function to be executed and hardware corresponding to the function,
A computer comprising: power management means for managing power of predetermined hardware based on information managed by the correspondence information management means.
前記機能の起動または停止を前記電力管理手段に要求する機能要求手段を備えるとともに、
前記電力管理手段は、前記機能要求手段による要求に基づいて電力を管理すること
を特徴とする請求項2記載の計算機。
A function requesting unit that requests the power management unit to start or stop the function,
3. The computer according to claim 2, wherein the power management unit manages power based on a request from the function request unit.
前記電力管理手段は、所定のハードウェアの動作開始時期を制御する
ことを特徴とする請求項2記載の計算機。
3. The computer according to claim 2, wherein the power management unit controls an operation start timing of a predetermined hardware.
前記ハードウェアは揮発性記憶手段を備えるとともに、
前記ハードウェアとバスを介して接続され、バスマスタ機能と不揮発性記憶手段とを有し、前記ハードウェアに対応する揮発性記憶手段に記憶された情報を、前記バスマスタ機能を用いて前記バスを介して前記不揮発性記憶手段に記憶する揮発性情報記憶手段
を備えることを特徴とする請求項2記載の計算機。
The hardware includes a volatile storage unit,
It is connected to the hardware via a bus, has a bus master function and a non-volatile storage means, and stores information stored in a volatile storage means corresponding to the hardware through the bus using the bus master function. 3. The computer according to claim 2, further comprising volatile information storage means for storing the volatile information in the nonvolatile storage means.
JP2002183879A 2002-06-25 2002-06-25 Electric power management method, and computer Abandoned JP2004030100A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002183879A JP2004030100A (en) 2002-06-25 2002-06-25 Electric power management method, and computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002183879A JP2004030100A (en) 2002-06-25 2002-06-25 Electric power management method, and computer

Publications (1)

Publication Number Publication Date
JP2004030100A true JP2004030100A (en) 2004-01-29

Family

ID=31179910

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002183879A Abandoned JP2004030100A (en) 2002-06-25 2002-06-25 Electric power management method, and computer

Country Status (1)

Country Link
JP (1) JP2004030100A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008070934A (en) * 2006-09-12 2008-03-27 Matsushita Electric Ind Co Ltd Microcontroller and related technology therefor
JP2011034381A (en) * 2009-08-03 2011-02-17 Fujitsu Telecom Networks Ltd Power supply controller

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008070934A (en) * 2006-09-12 2008-03-27 Matsushita Electric Ind Co Ltd Microcontroller and related technology therefor
US7930575B2 (en) 2006-09-12 2011-04-19 Panasonic Corporation Microcontroller for controlling power shutdown process
JP2011034381A (en) * 2009-08-03 2011-02-17 Fujitsu Telecom Networks Ltd Power supply controller

Similar Documents

Publication Publication Date Title
JP5323828B2 (en) Virtual machine control device, virtual machine control program, and virtual machine control circuit
JP3507822B2 (en) Computer device and power saving control method thereof
JP2002215597A (en) Multiprocessor device
KR101551321B1 (en) Method and system for scheduling requests in a portable computing device
JPH0776894B2 (en) Clock signal control method for processor and information processing system
JPH04333119A (en) Information processor
JPH11184554A (en) Clock control type information processor
JP2004046324A (en) Information processor with standby mode, and standby mode starting method and standby mode canceling method for the same
US7111182B2 (en) Thread scheduling mechanisms for processor resource power management
WO2011033626A1 (en) Computer system
CN107533352B (en) Controlling transitions between standard and static states
JP2006351013A (en) Method and system for storing/restoring procedure in electronic equipment
JP3665030B2 (en) Bus control method and information processing apparatus
JP2002288150A (en) Semiconductor integrated circuit device
JP3983026B2 (en) Information processing device
JPH11202968A (en) Microcomputer
JP2004030100A (en) Electric power management method, and computer
US20190214989A1 (en) Semiconductor device and semiconductor system
JP5783348B2 (en) Control device, control program, and image forming apparatus
JP2010097427A (en) Processing apparatus, processing method and computer program
JP2017162311A (en) Smart device, priority processing method and priority processing program
JP2002082743A (en) Electronic equipment and storage medium stored with electronic equipment control program
JPH0594226A (en) Clock switching system
JP2004086556A (en) Microcontroller
JP2003256088A (en) Arithmetic processing unit for executing power-saving control

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20040707

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050617

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071211

A762 Written abandonment of application

Free format text: JAPANESE INTERMEDIATE CODE: A762

Effective date: 20080123