* This function will enter corresponding power mode. */
| 466 | * This function will enter corresponding power mode. |
| 467 | */ |
| 468 | void rt_system_power_manager(void) |
| 469 | { |
| 470 | if (_pm_init_flag == 0 || _pm.ops == RT_NULL) |
| 471 | { |
| 472 | return; |
| 473 | } |
| 474 | |
| 475 | /* CPU frequency scaling according to the runing mode settings */ |
| 476 | _pm_frequency_scaling(&_pm); |
| 477 | |
| 478 | /* Low Power Mode Processing */ |
| 479 | _pm_change_sleep_mode(&_pm); |
| 480 | } |
| 481 | |
| 482 | /** |
| 483 | * Upper application or device driver requests the system |
no test coverage detected