Browse Source

Use correct version of knc_titan_setup_core

Vitalii Demianets 11 years ago
parent
commit
4bdfef0582
2 changed files with 5 additions and 2 deletions
  1. 1 1
      knc-asic
  2. 4 1
      titan-asic.c

+ 1 - 1
knc-asic

@@ -1 +1 @@
-Subproject commit e5c986d3c44fde8c5b069508ef6979f2f2be92d6
+Subproject commit 0d43f1d990d2b3a956d50948140ac604055247cb

+ 4 - 1
titan-asic.c

@@ -71,10 +71,13 @@ bool knc_titan_get_report(const char *repr, void * const ctx, int channel, int d
 	return true;
 	return true;
 }
 }
 
 
+/* Use bare function without extra checks */
+extern bool knc_titan_setup_core_(void * const ctx, int channel, int die, int core, struct titan_setup_core_params *params);
+
 /* This fails if core is hashing!
 /* This fails if core is hashing!
  * Stop it before setting up.
  * Stop it before setting up.
  */
  */
 bool knc_titan_setup_core_local(const char *repr, void * const ctx, int channel, int die, int core, struct titan_setup_core_params *params)
 bool knc_titan_setup_core_local(const char *repr, void * const ctx, int channel, int die, int core, struct titan_setup_core_params *params)
 {
 {
-	return knc_titan_setup_core(ctx, channel, die, core, params);
+	return knc_titan_setup_core_(ctx, channel, die, core, params);
 }
 }