Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293730
b: refs/heads/master
c: b1aa553
h: refs/heads/master
v: v3
  • Loading branch information
Martin Peres authored and Ben Skeggs committed Mar 13, 2012
1 parent 8a66fc4 commit 4e6a439
Show file tree
Hide file tree
Showing 4 changed files with 4 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: bc6389e4fa1a6535021ffc4d3b37d48f9a0542e2
refs/heads/master: b1aa5531cc74ea023ad35e9cf5872112a15b4f70
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/nouveau/nouveau_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ struct nouveau_pm_fan {
u32 min_duty;
u32 max_duty;
u32 pwm_freq;
u32 pwm_divisor;
};

struct nouveau_pm_engine {
Expand All @@ -533,7 +534,6 @@ struct nouveau_pm_engine {
struct nouveau_pm_temp_sensor_constants sensor_constants;
struct nouveau_pm_threshold_temp threshold_temp;
struct nouveau_pm_fan fan;
u32 pwm_divisor;

struct nouveau_pm_level boot;
struct nouveau_pm_level *cur;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/nouveau/nouveau_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ nouveau_perf_init(struct drm_device *dev)
recordlen = perf[3] + (perf[4] * perf[5]);
entries = perf[2];

pm->pwm_divisor = ROM16(perf[6]);
pm->fan.pwm_divisor = ROM16(perf[6]);
} else {
recordlen = perf[2] + (perf[3] * perf[4]);
entries = perf[5];
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/nouveau/nouveau_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ nouveau_pwmfan_set(struct drm_device *dev, int percent)

ret = nouveau_gpio_find(dev, 0, DCB_GPIO_PWM_FAN, 0xff, &gpio);
if (ret == 0) {
divs = pm->pwm_divisor;
divs = pm->fan.pwm_divisor;
if (pm->fan.pwm_freq) {
/*XXX: PNVIO clock more than likely... */
divs = 135000 / pm->fan.pwm_freq;
Expand Down

0 comments on commit 4e6a439

Please sign in to comment.