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
031ac91d
Commit
031ac91d
authored
Dec 27, 2002
by
Geert Uytterhoeven
Committed by
Linus Torvalds
Dec 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] MVME16x core local_irq*() updates
Convert core MVME16x code to new local_irq*() framework
parent
a50b9779
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
arch/m68k/mvme16x/rtc.c
arch/m68k/mvme16x/rtc.c
+4
-6
No files found.
arch/m68k/mvme16x/rtc.c
View file @
031ac91d
...
...
@@ -48,8 +48,7 @@ static int rtc_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
switch
(
cmd
)
{
case
RTC_RD_TIME
:
/* Read the time/date from RTC */
{
save_flags
(
flags
);
cli
();
local_irq_save
(
flags
);
/* Ensure clock and real-time-mode-register are accessible */
rtc
->
ctrl
=
RTC_READ
;
wtime
.
tm_sec
=
BCD2BIN
(
rtc
->
bcd_sec
);
...
...
@@ -62,7 +61,7 @@ static int rtc_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
wtime
.
tm_year
+=
100
;
wtime
.
tm_wday
=
BCD2BIN
(
rtc
->
bcd_dow
)
-
1
;
rtc
->
ctrl
=
0
;
restore_flags
(
flags
);
local_irq_restore
(
flags
);
return
copy_to_user
((
void
*
)
arg
,
&
wtime
,
sizeof
wtime
)
?
-
EFAULT
:
0
;
}
...
...
@@ -102,8 +101,7 @@ static int rtc_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
if
(
yrs
>=
2070
)
return
-
EINVAL
;
save_flags
(
flags
);
cli
();
local_irq_save
(
flags
);
rtc
->
ctrl
=
RTC_WRITE
;
rtc
->
bcd_sec
=
BIN2BCD
(
sec
);
...
...
@@ -114,7 +112,7 @@ static int rtc_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
rtc
->
bcd_year
=
BIN2BCD
(
yrs
%
100
);
rtc
->
ctrl
=
0
;
restore_flags
(
flags
);
local_irq_restore
(
flags
);
return
0
;
}
default:
...
...
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