Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196669
b: refs/heads/master
c: dd04c63
h: refs/heads/master
i:
  196667: de1d9ef
v: v3
  • Loading branch information
Anton Blanchard authored and Benjamin Herrenschmidt committed May 21, 2010
1 parent 8cee831 commit 9f5475f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 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: 60adec6226bbcf061d4c2d10944fced209d1847d
refs/heads/master: dd04c63c96425af9b6741f3abf0ad25d6b1c0e8d
29 changes: 0 additions & 29 deletions trunk/arch/powerpc/kernel/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,33 +67,6 @@ static ssize_t show_smt_snooze_delay(struct sys_device *dev,
static SYSDEV_ATTR(smt_snooze_delay, 0644, show_smt_snooze_delay,
store_smt_snooze_delay);

/* Only parse OF options if the matching cmdline option was not specified */
static int smt_snooze_cmdline;

static int __init smt_setup(void)
{
struct device_node *options;
const unsigned int *val;
unsigned int cpu;

if (!cpu_has_feature(CPU_FTR_SMT))
return -ENODEV;

options = of_find_node_by_path("/options");
if (!options)
return -ENODEV;

val = of_get_property(options, "ibm,smt-snooze-delay", NULL);
if (!smt_snooze_cmdline && val) {
for_each_possible_cpu(cpu)
per_cpu(smt_snooze_delay, cpu) = *val;
}

of_node_put(options);
return 0;
}
__initcall(smt_setup);

static int __init setup_smt_snooze_delay(char *str)
{
unsigned int cpu;
Expand All @@ -102,8 +75,6 @@ static int __init setup_smt_snooze_delay(char *str)
if (!cpu_has_feature(CPU_FTR_SMT))
return 1;

smt_snooze_cmdline = 1;

if (get_option(&str, &snooze)) {
for_each_possible_cpu(cpu)
per_cpu(smt_snooze_delay, cpu) = snooze;
Expand Down

0 comments on commit 9f5475f

Please sign in to comment.