Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56372
b: refs/heads/master
c: 29e0937
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed May 14, 2007
1 parent 61d36b9 commit a161f2e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 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: be35cf01a9889e82da3bbda1d7b161f036424225
refs/heads/master: 29e0937bb693879221f575b01f26314b3f443322
2 changes: 0 additions & 2 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -1712,8 +1712,6 @@ 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: 9 additions & 8 deletions trunk/drivers/block/loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,11 @@ 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 @@ -1443,17 +1448,13 @@ 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 = loop_init_one(dev & MINORMASK);
struct loop_device *lo;
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 @@ -1466,7 +1467,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, loop_lock, NULL);
THIS_MODULE, loop_probe, NULL, NULL);

if (max_loop) {
printk(KERN_INFO "loop: the max_loop option is obsolete "
Expand Down
6 changes: 6 additions & 0 deletions trunk/include/linux/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -261,5 +261,11 @@ 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: 2 additions & 0 deletions trunk/kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ 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: 0 additions & 2 deletions trunk/kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1499,8 +1499,6 @@ 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 a161f2e

Please sign in to comment.