Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58177
b: refs/heads/master
c: 333408f
h: refs/heads/master
i:
  58175: a2af70c
v: v3
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed Jul 3, 2007
1 parent a26bbaf commit ddb8c31
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 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: dbc55faa64c12f4c9fab6e2bd131d771bc026ed1
refs/heads/master: 333408f21590d50397f3004e3f87070fa8f52c51
13 changes: 6 additions & 7 deletions trunk/drivers/media/video/bt8xx/bttv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ set_tvnorm(struct bttv *btv, unsigned int norm)

/* Call with btv->lock down. */
static void
set_input(struct bttv *btv, unsigned int input)
set_input(struct bttv *btv, unsigned int input, unsigned int norm)
{
unsigned long flags;

Expand All @@ -1350,7 +1350,7 @@ set_input(struct bttv *btv, unsigned int input)
}
audio_input(btv,(input == bttv_tvcards[btv->c.type].tuner ?
TVAUDIO_INPUT_TUNER : TVAUDIO_INPUT_EXTERN));
set_tvnorm(btv,btv->tvnorm);
set_tvnorm(btv, norm);
i2c_vidiocschan(btv);
}

Expand Down Expand Up @@ -1441,7 +1441,7 @@ static void bttv_reinit_bt848(struct bttv *btv)

init_bt848(btv);
btv->pll.pll_current = -1;
set_input(btv,btv->input);
set_input(btv, btv->input, btv->tvnorm);
}

static int get_control(struct bttv *btv, struct v4l2_control *c)
Expand Down Expand Up @@ -2011,8 +2011,7 @@ static int bttv_common_ioctls(struct bttv *btv, unsigned int cmd, void *arg)
return 0;
}

btv->tvnorm = v->norm;
set_input(btv,v->channel);
set_input(btv, v->channel, v->norm);
mutex_unlock(&btv->lock);
return 0;
}
Expand Down Expand Up @@ -2148,7 +2147,7 @@ static int bttv_common_ioctls(struct bttv *btv, unsigned int cmd, void *arg)
if (*i > bttv_tvcards[btv->c.type].video_inputs)
return -EINVAL;
mutex_lock(&btv->lock);
set_input(btv,*i);
set_input(btv, *i, btv->tvnorm);
mutex_unlock(&btv->lock);
return 0;
}
Expand Down Expand Up @@ -4780,7 +4779,7 @@ static int __devinit bttv_probe(struct pci_dev *dev,
bt848_hue(btv,32768);
bt848_sat(btv,32768);
audio_mute(btv, 1);
set_input(btv,0);
set_input(btv, 0, btv->tvnorm);
bttv_crop_reset(&btv->crop[0], btv->tvnorm);
btv->crop[1] = btv->crop[0]; /* current = default */
disclaim_vbi_lines(btv);
Expand Down
2 changes: 2 additions & 0 deletions trunk/kernel/time/ntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ void second_overflow(void)
*/
time_interpolator_update(-NSEC_PER_SEC);
time_state = TIME_OOP;
clock_was_set();
printk(KERN_NOTICE "Clock: inserting leap second "
"23:59:60 UTC\n");
}
Expand All @@ -136,6 +137,7 @@ void second_overflow(void)
*/
time_interpolator_update(NSEC_PER_SEC);
time_state = TIME_WAIT;
clock_was_set();
printk(KERN_NOTICE "Clock: deleting leap second "
"23:59:59 UTC\n");
}
Expand Down
8 changes: 2 additions & 6 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1798,6 +1798,8 @@ static struct kmem_cache_node * __init early_kmem_cache_node_alloc(gfp_t gfpflag
BUG_ON(kmalloc_caches->size < sizeof(struct kmem_cache_node));

page = new_slab(kmalloc_caches, gfpflags | GFP_THISNODE, node);
/* new_slab() disables interupts */
local_irq_enable();

BUG_ON(!page);
n = page->freelist;
Expand All @@ -1809,12 +1811,6 @@ static struct kmem_cache_node * __init early_kmem_cache_node_alloc(gfp_t gfpflag
init_kmem_cache_node(n);
atomic_long_inc(&n->nr_slabs);
add_partial(n, page);

/*
* new_slab() disables interupts. If we do not reenable interrupts here
* then bootup would continue with interrupts disabled.
*/
local_irq_enable();
return n;
}

Expand Down

0 comments on commit ddb8c31

Please sign in to comment.