summaryrefslogtreecommitdiff
path: root/sys/src/9/port/portdat.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-09-25 14:48:42 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-09-25 14:48:42 +0000
commit6fb883b02c6fca762dcbe31450c868e4b854952c (patch)
tree1749dbbe1ac1a00635fa9e508fa16d0829ba2e9d /sys/src/9/port/portdat.h
parent6abe569ec8f47ba14c3dcd5d5214e7b7a020bf7a (diff)
9/port: revert timer wheel change, breaks pi4 boot, needs more time investigating
Diffstat (limited to 'sys/src/9/port/portdat.h')
-rw-r--r--sys/src/9/port/portdat.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/src/9/port/portdat.h b/sys/src/9/port/portdat.h
index 2a674b3bb..45a39be8e 100644
--- a/sys/src/9/port/portdat.h
+++ b/sys/src/9/port/portdat.h
@@ -1,3 +1,4 @@
+typedef struct Alarms Alarms;
typedef struct Block Block;
typedef struct Chan Chan;
typedef struct Cmdbuf Cmdbuf;
@@ -97,6 +98,12 @@ struct RWlock
int writer; /* number of writers */
};
+struct Alarms
+{
+ QLock;
+ Proc *head;
+};
+
struct Sargs
{
uchar args[MAXSYSARG*BY2WD];
@@ -568,7 +575,6 @@ struct Timer
Tval tticks; /* tns converted to ticks */
Tval twhen; /* ns represented in fastticks */
Timer *tnext;
- Timer **tlink; /* a pointer to the prev nodes's next */
};
enum
@@ -714,8 +720,8 @@ struct Proc
Rendez sleep; /* place for syssleep/debug */
int notepending; /* note issued but not acted on */
int kp; /* true if a kernel process */
- Proc *palarm; /* triggered alarm chain */
- Timer alarm; /* alarm context */
+ Proc *palarm; /* Next alarm time */
+ ulong alarm; /* Time of call */
int newtlb; /* Pager has changed my pte's, I must flush */
uintptr rendtag; /* Tag for rendezvous */