Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75634
b: refs/heads/master
c: ac935cb
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Jan 22, 2008
1 parent 99d5e4d commit 67f4f30
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 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: 4960c9df1407c2723459c60ff13e6efe0c209c62
refs/heads/master: ac935cb533b89a69e18ad175656910848ea0d79e
4 changes: 2 additions & 2 deletions trunk/drivers/w1/slaves/w1_therm.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ static struct w1_therm_family_converter w1_therm_families[] = {

static inline int w1_DS18B20_convert_temp(u8 rom[9])
{
int t = (rom[1] << 8) | rom[0];
s16 t = (rom[1] << 8) | rom[0];
t /= 16;
return t;
}
Expand Down Expand Up @@ -204,7 +204,7 @@ static ssize_t w1_therm_read_bin(struct kobject *kobj,

crc = w1_calc_crc8(rom, 8);

if (rom[8] == crc && rom[0])
if (rom[8] == crc)
verdict = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/rcupdate.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ static void rcu_init_percpu_data(int cpu, struct rcu_ctrlblk *rcp,
rdp->blimit = blimit;
}

static void __devinit rcu_online_cpu(int cpu)
static void __cpuinit rcu_online_cpu(int cpu)
{
struct rcu_data *rdp = &per_cpu(rcu_data, cpu);
struct rcu_data *bh_rdp = &per_cpu(rcu_bh_data, cpu);
Expand Down
8 changes: 8 additions & 0 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -7153,6 +7153,14 @@ int sched_group_set_shares(struct task_group *tg, unsigned long shares)
{
int i;

/*
* A weight of 0 or 1 can cause arithmetics problems.
* (The default weight is 1024 - so there's no practical
* limitation from this.)
*/
if (shares < 2)
shares = 2;

spin_lock(&tg->lock);
if (tg->shares == shares)
goto done;
Expand Down

0 comments on commit 67f4f30

Please sign in to comment.