Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
9191f600
Commit
9191f600
authored
Jun 09, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[timer] Convert to use new system device API.
parent
c403e2b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
arch/i386/kernel/time.c
arch/i386/kernel/time.c
+9
-5
No files found.
arch/i386/kernel/time.c
View file @
9191f600
...
@@ -278,18 +278,22 @@ unsigned long get_cmos_time(void)
...
@@ -278,18 +278,22 @@ unsigned long get_cmos_time(void)
return
retval
;
return
retval
;
}
}
static
struct
sysdev_class
rtc_sysclass
=
{
set_kset_name
(
"rtc"
),
};
/* XXX this driverfs stuff should probably go elsewhere later -john */
/* XXX this driverfs stuff should probably go elsewhere later -john */
static
struct
sys_device
device_i8253
=
{
static
struct
sys_device
device_i8253
=
{
.
name
=
"rtc"
,
.
id
=
0
,
.
id
=
0
,
.
dev
=
{
.
cls
=
&
rtc_sysclass
,
.
name
=
"i8253 Real Time Clock"
,
},
};
};
static
int
time_init_device
(
void
)
static
int
time_init_device
(
void
)
{
{
return
sys_device_register
(
&
device_i8253
);
int
error
=
sysdev_class_register
(
&
rtc_sysclass
);
if
(
!
error
)
error
=
sys_device_register
(
&
device_i8253
);
return
error
;
}
}
device_initcall
(
time_init_device
);
device_initcall
(
time_init_device
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment