Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156455
b: refs/heads/master
c: e0d82a0
h: refs/heads/master
i:
  156453: 286eccb
  156451: 4e44741
  156447: a5d272c
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Ingo Molnar committed Aug 6, 2009
1 parent c9cfad5 commit 21983d4
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 10 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: af6af30c0fcd77e621638e53ef8b176bca8bd3b4
refs/heads/master: e0d82a0a4e9841b787e6431ccfbb515546c55dc2
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/kernel/mpc7450-pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ struct power_pmu mpc7450_pmu = {

static int init_mpc7450_pmu(void)
{
if (strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc/7450"))
if (!cur_cpu_spec->oprofile_cpu_type ||
strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc/7450"))
return -ENODEV;

return register_power_pmu(&mpc7450_pmu);
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/kernel/power4-pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,8 @@ static struct power_pmu power4_pmu = {

static int init_power4_pmu(void)
{
if (strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power4"))
if (!cur_cpu_spec->oprofile_cpu_type ||
strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power4"))
return -ENODEV;

return register_power_pmu(&power4_pmu);
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/powerpc/kernel/power5+-pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,9 @@ static struct power_pmu power5p_pmu = {

static int init_power5p_pmu(void)
{
if (strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power5+")
&& strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power5++"))
if (!cur_cpu_spec->oprofile_cpu_type ||
(strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power5+")
&& strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power5++")))
return -ENODEV;

return register_power_pmu(&power5p_pmu);
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/kernel/power5-pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,8 @@ static struct power_pmu power5_pmu = {

static int init_power5_pmu(void)
{
if (strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power5"))
if (!cur_cpu_spec->oprofile_cpu_type ||
strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power5"))
return -ENODEV;

return register_power_pmu(&power5_pmu);
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/kernel/power6-pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,8 @@ static struct power_pmu power6_pmu = {

static int init_power6_pmu(void)
{
if (strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power6"))
if (!cur_cpu_spec->oprofile_cpu_type ||
strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power6"))
return -ENODEV;

return register_power_pmu(&power6_pmu);
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/kernel/power7-pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,8 @@ static struct power_pmu power7_pmu = {

static int init_power7_pmu(void)
{
if (strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power7"))
if (!cur_cpu_spec->oprofile_cpu_type ||
strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power7"))
return -ENODEV;

return register_power_pmu(&power7_pmu);
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/powerpc/kernel/ppc970-pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,9 @@ static struct power_pmu ppc970_pmu = {

static int init_ppc970_pmu(void)
{
if (strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/970")
&& strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/970MP"))
if (!cur_cpu_spec->oprofile_cpu_type ||
(strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/970")
&& strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/970MP")))
return -ENODEV;

return register_power_pmu(&ppc970_pmu);
Expand Down

0 comments on commit 21983d4

Please sign in to comment.