Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56360
b: refs/heads/master
c: 7a05b59
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed May 14, 2007
1 parent 827e2d2 commit 64ac5ac
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 140ff8b0459cac5ade7a42131f561a9ee0fa3cc4
refs/heads/master: 7a05b591a3de20466a775f62369a42ea0fe1345d
2 changes: 2 additions & 0 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -1712,6 +1712,8 @@ L: Linux-Kernel@vger.kernel.org
S: Maintained

i386 SETUP CODE / CPU ERRATA WORKAROUNDS
P: Dave Jones
M: davej@codemonkey.org.uk
P: H. Peter Anvin
M: hpa@zytor.com
S: Maintained
Expand Down
17 changes: 8 additions & 9 deletions trunk/drivers/block/loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1399,11 +1399,6 @@ static struct loop_device *loop_init_one(int i)
struct loop_device *lo;
struct gendisk *disk;

list_for_each_entry(lo, &loop_devices, lo_list) {
if (lo->lo_number == i)
return lo;
}

lo = kzalloc(sizeof(*lo), GFP_KERNEL);
if (!lo)
goto out;
Expand Down Expand Up @@ -1448,13 +1443,17 @@ static void loop_del_one(struct loop_device *lo)
kfree(lo);
}

static int loop_lock(dev_t dev, void *data)
{
mutex_lock(&loop_devices_mutex);
return 0;
}

static struct kobject *loop_probe(dev_t dev, int *part, void *data)
{
struct loop_device *lo;
struct loop_device *lo = loop_init_one(dev & MINORMASK);
struct kobject *kobj;

mutex_lock(&loop_devices_mutex);
lo = loop_init_one(dev & MINORMASK);
kobj = lo ? get_disk(lo->lo_disk) : ERR_PTR(-ENOMEM);
mutex_unlock(&loop_devices_mutex);

Expand All @@ -1467,7 +1466,7 @@ static int __init loop_init(void)
if (register_blkdev(LOOP_MAJOR, "loop"))
return -EIO;
blk_register_region(MKDEV(LOOP_MAJOR, 0), 1UL << MINORBITS,
THIS_MODULE, loop_probe, NULL, NULL);
THIS_MODULE, loop_probe, loop_lock, NULL);

if (max_loop) {
printk(KERN_INFO "loop: the max_loop option is obsolete "
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/serial/sunhv.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,10 @@ static struct of_device_id hv_match[] = {
.name = "console",
.compatible = "qcn",
},
{
.name = "console",
.compatible = "SUNW,sun4v-console",
},
{},
};
MODULE_DEVICE_TABLE(of, hv_match);
Expand Down
6 changes: 0 additions & 6 deletions trunk/include/linux/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,5 @@ asmlinkage long compat_sys_epoll_pwait(int epfd,
asmlinkage long compat_sys_utimensat(unsigned int dfd, char __user *filename,
struct compat_timespec __user *t, int flags);

asmlinkage long compat_sys_signalfd(int ufd,
const compat_sigset_t __user *sigmask,
compat_size_t sigsetsize);
asmlinkage long compat_sys_timerfd(int ufd, int clockid, int flags,
const struct compat_itimerspec __user *utmr);

#endif /* CONFIG_COMPAT */
#endif /* _LINUX_COMPAT_H */
2 changes: 0 additions & 2 deletions trunk/kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,6 @@ static int timekeeping_resume(struct sys_device *dev)
unsigned long flags;
unsigned long now = read_persistent_clock();

clocksource_resume();

write_seqlock_irqsave(&xtime_lock, flags);

if (now && (now > timekeeping_suspend_time)) {
Expand Down
2 changes: 2 additions & 0 deletions trunk/kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,8 @@ unregister_time_interpolator(struct time_interpolator *ti)
prev = &curr->next;
}

clocksource_resume();

write_seqlock_irqsave(&xtime_lock, flags);
if (ti == time_interpolator) {
/* we lost the best time-interpolator: */
Expand Down

0 comments on commit 64ac5ac

Please sign in to comment.