mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
Update to use 64-bit timer when available
This commit is contained in:
+3
-2
@@ -45,8 +45,9 @@
|
||||
#include <semaphore.h>
|
||||
#include <queue.h>
|
||||
|
||||
#include <nuttx/power/pm.h>
|
||||
#include <nuttx/clock.h>
|
||||
#include <nuttx/wqueue.h>
|
||||
#include <nuttx/power/pm.h>
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
|
||||
@@ -136,7 +137,7 @@ struct pm_global_s
|
||||
|
||||
/* stime - The time (in ticks) at the start of the current time slice */
|
||||
|
||||
uint32_t stime;
|
||||
systime_t stime;
|
||||
|
||||
/* This semaphore manages mutually exclusive access to the power management
|
||||
* registry. It must be initialized to the value 1.
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
|
||||
void pm_activity(int priority)
|
||||
{
|
||||
uint32_t now;
|
||||
systime_t now;
|
||||
uint32_t accum;
|
||||
irqstate_t flags;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* drivers/power/pm_checkstate.c
|
||||
*
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2011-2012, 2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -108,7 +108,7 @@
|
||||
|
||||
enum pm_state_e pm_checkstate(void)
|
||||
{
|
||||
uint32_t now;
|
||||
systime_t now;
|
||||
irqstate_t flags;
|
||||
|
||||
/* Check for the end of the current time slice. This must be performed
|
||||
|
||||
Reference in New Issue
Block a user