On Tue, Feb 03, 2015 at 01:36:50PM +0000, Chris Wilson wrote: > On Mon, Feb 02, 2015 at 07:09:50PM +0200, ville.syrjala@xxxxxxxxxxxxxxx wrote: > > From: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> > > > > Replace the valleyview_set_rps() and gen6_set_rps() calls with > > intel_set_rps() which itself does the IS_VALLEYVIEW() check. The > > code becomes simpler since the callers don't have to do this check > > themselves. > > > > Most of the change was performe with the following semantic patch: > > @@ > > expression E1, E2, E3; > > @@ > > - if (IS_VALLEYVIEW(E1)) { > > - valleyview_set_rps(E2, E3); > > - } else { > > - gen6_set_rps(E2, E3); > > - } > > + intel_set_rps(E2, E3); > > > > Adding intel_set_rps() and making valleyview_set_rps() and gen6_set_rps() > > static was done manually. Also valleyview_set_rps() had to be moved a > > bit avoid a forward declaration. > > > > v2: Use a less greedy semantic patch > > > > Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> > > Suggested-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> > > Signed-off-by: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> > Reviewed-by Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> Queued for -next, thanks for the patch. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx