Update to use 64-bit timer when available

This commit is contained in:
Gregory Nutt
2016-01-21 11:54:26 -06:00
parent cb7bbdfed4
commit f348e68069
41 changed files with 182 additions and 165 deletions
+3 -2
View File
@@ -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.
+1 -1
View File
@@ -103,7 +103,7 @@
void pm_activity(int priority)
{
uint32_t now;
systime_t now;
uint32_t accum;
irqstate_t flags;
+2 -2
View File
@@ -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